devendrachaplot / Neural-SLAM

Pytorch code for ICLR-20 Paper "Learning to Explore using Active Neural SLAM"
http://www.cs.cmu.edu/~dchaplot/projects/neural-slam.html
MIT License
760 stars 144 forks source link

ModuleNotFoundError: No module named 'habitat' #64

Open rushibs opened 1 year ago

rushibs commented 1 year ago

I followed all the steps mentioned to reproduce the codebase. However, I am getting the error shown below when I run the following command:

python3 main.py -n1 --auto_gpu_config 0 --split val

ERROR:

Traceback (most recent call last): File "main.py", line 15, in from env import make_vec_envs File "/home/USER/Neural-SLAM/env/init.py", line 3, in from .habitat import construct_envs File "/home/USER/Neural-SLAM/env/habitat/init.py", line 6, in from habitat.config.default import get_config as cfg_env ModuleNotFoundError: No module named 'habitat'

Could you kindly guide me what the issue could be and how to resolve it?

snowBrain commented 1 year ago

u can change “ import env.habitat.utils.pose as pu” to “from env.habitat.utils import pose as pu” and “import env.habitat.utils.visualizations as vu” to "from env.habitat.utils import visualizations as vu"

sahusiddharth commented 7 months ago

Hi @rushibs, were you able to resolve it?

Hi @snowBrain, I tried what you suggested but the error is still there, can you please help me resolve it?