peteanderson80 / Matterport3DSimulator

AI Research Platform for Reinforcement Learning from Real Panoramic Images.
Other
503 stars 130 forks source link

ModuleNotFoundError: No module named 'MatterSim' #88

Open parthskansara opened 3 years ago

parthskansara commented 3 years ago

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:

The next statement gives the above error:

Alternatively, I've also tried the following cmake command, but got the same error:

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?

peteanderson80 commented 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.

LambdaGuard commented 2 months ago

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.