Comments (7)
This error is some bug in python 3.6, if you update to python 3.7 it should be fixed without any change in code.
https://stackoverflow.com/questions/24807434/imports-in-init-py-and-import-as-statement
from neural-slam.
It's probably not the most ideal solution, but I changed the import
statements to from import
statements. i.e.:
# import env.habitat.utils.pose as pu
from env.habitat.utils import pose as pu
Also I realize that my error may be different from the version issue in the original post.
from neural-slam.
Hi,
This is likely because you are using a different version of habitat-sim and/or habitat-api. Can you confirm if you are checking out the commits mentioned in the README.md for habitat-sim and habitat-api?
from neural-slam.
I got stuck at the same place. However the traceback stops at /content/Neural-SLAM/env/habitat/exploration_env.py
. I verified I was on the specified branches in habitat-sim and habitat-api. I'm on a Mac.
Following is my traceback:
Traceback (most recent call last):
File "main.py", line 15, in <module>
from env import make_vec_envs
File "/Users/haardshah/development/gatech/DL_CS7643/habitat/habitat-submission/neural-SLAM/env/__init__.py", line 3, in <module>
from .habitat import construct_envs
File "/Users/haardshah/development/gatech/DL_CS7643/habitat/habitat-submission/neural-SLAM/env/habitat/__init__.py", line 9, in <module>
from .exploration_env import Exploration_Env
File "/Users/haardshah/development/gatech/DL_CS7643/habitat/habitat-submission/neural-SLAM/env/habitat/exploration_env.py", line 29, in <module>
import env.habitat.utils.pose as pu
AttributeError: module 'env' has no attribute 'habitat'
from neural-slam.
This error is some bug in python 3.6, if you update to python 3.7 it should be fixed without any change in code.
https://stackoverflow.com/questions/24807434/imports-in-init-py-and-import-as-statement
Thank you very much
from neural-slam.
Hello all @devendrachaplot , @Zjhzzzzz , @shahhaard47 . I was facing the same error ImportError: cannot import name 'register_move_fn' however my habitat-sim and habitat-api setup was running fine.
As suggested I installed everything in the new virtual env with python3.7. Now, I am getting following error
(ANS1) hemnani1@BOSS8-OS:~/DIR/habitat-api$ python examples/example.py
Traceback (most recent call last):
File "examples/example.py", line 7, in
import habitat
File "/DATA/hemnani1/DIR/habitat-api/habitat/init.py", line 7, in
from habitat.config import Config, get_config
File "/DATA/hemnani1/DIR/habitat-api/habitat/config/init.py", line 7, in
from yacs.config import CfgNode as Config
File "/DATA/hemnani1/.local/lib/python3.7/site-packages/yacs/config.py", line 30, in
import yaml
ModuleNotFoundError: No module named 'yaml'
Now, even the example.py file of habitat is not working .
How did you all resolve this error? and what things you took care while installation . Please, suggest me some solution.
from neural-slam.
After trying in python 3.7:
I am getting following error:
(ANS1) hemnani1@BOSS8-OS:~/DIR/habitat-api$ python examples/example.py
2020-12-06 15:36:06,378 initializing sim Sim-v0
Traceback (most recent call last):
File "examples/example.py", line 25, in
example()
File "examples/example.py", line 11, in example
env = habitat.Env(config=habitat.get_config("configs/tasks/pointnav.yaml"))
File "/DATA/hemnani1/DIR/habitat-api/habitat/core/env.py", line 93, in init
id_sim=self._config.SIMULATOR.TYPE, config=self._config.SIMULATOR
File "/DATA/hemnani1/DIR/habitat-api/habitat/sims/registration.py", line 19, in make_sim
return _sim(**kwargs)
File "/DATA/hemnani1/DIR/habitat-api/habitat/sims/habitat_simulator/init.py ", line 24, in init
raise habitat_sim_import_error
File "/DATA/hemnani1/DIR/habitat-api/habitat/sims/habitat_simulator/init.py ", line 7, in _try_register_habitat_sim
import habitat_sim
File "/DATA/hemnani1/anaconda3/envs/ANS1/lib/python3.7/site-packages/habitat_si m/init.py", line 13, in
from habitat_sim import ( # noqa: F401
File "/DATA/hemnani1/anaconda3/envs/ANS1/lib/python3.7/site-packages/habitat_si m/agent/init.py", line 7, in
from .agent import * # noqa: F401,F403
File "/DATA/hemnani1/anaconda3/envs/ANS1/lib/python3.7/site-packages/habitat_si m/agent/agent.py", line 10, in
import magnum as mn
File "/DATA/hemnani1/.local/lib/python3.7/site-packages/magnum/init.py", li ne 28, in
from _magnum import *
ImportError: Python version mismatch: module was compiled for Python 3.6, but the interpreter version is incompatible: 3.7.9 (default, Aug 31 2020, 12:42:55)
Can someone help me to resolve this?
from neural-slam.
Related Issues (20)
- Question on pose estimate HOT 1
- possible to run this on android?
- parameter order when calling atan2() seems wrong HOT 1
- ImportError: cannot import name 'register_move_fn' from 'habitat_sim.agent.controls'
- Distorted output HOT 1
- No module named 'env.habitat.habitat_api.habitat' HOT 1
- assert PointNavDatasetV1.check_config_paths_exist(config) AssertionError HOT 1
- What does config.DATASET.SCENES_DIR mean? HOT 1
- get_sim_location HOT 1
- two question about GPU and visualization HOT 2
- Broken Pipe arising from data missing HOT 6
- single GPU error HOT 2
- Project dependencies may have API risk issues
- What kinds of coordinate using by the Neural-SLAM and Habitat? HOT 1
- ModuleNotFoundError: No module named 'habitat' HOT 2
- When migrating to a realistic scenario, how is the code about short-term goals implemented? HOT 1
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED + Broken pipe HOT 2
- How do I use the model with my own image stream and pose data?
- ConnectionResetError: [Errno 104] Connection reset by peer
- BrokenPipeError: [Errno 32] Broken pipe HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neural-slam.