Open parthskansara opened 3 years ago
Assuming the make command runs without error, it looks like python is not looking in the correct place for the MatterSim package.
This looks like a python issue. The python import system is complex and the settings vary by machine so I can't provide support for debugging that.
I solved the problem by adding the build
folder to PATH
in bash, or you can do it within python:
import sys
sys.path.append('Matterport3DSimulator/build')
then the import will run successfully.
Traceback:
File "scripts/downsize_skybox.py", line 10, in \
from depth_to_skybox import camera_parameters
File "/home/anshshah2111/Matterport3DSimulator/scripts/depth_to_skybox.py", line 25, in \
from MatterSim import cbf
ModuleNotFoundError: No module named 'MatterSim'
I'm using Google Cloud Platform, running an Ubuntu 18.04 VM.
After mounting the docker container, I have run the following commands from inside the container:
mkdir build && cd build
cmake -DEGL_RENDERING=ON ..
make
cd ..
The next statement gives the above error:
python3 scripts/downsize_skybox.py
Alternatively, I've also tried the following cmake command, but got the same error:
cmake -DEGL_RENDERING=ON -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.6 ..
How do I preprocess the skybox images? I understand that without this step, I cannot use the simulator.
Can using the Simulator API be an alternative workaround to this error?