Example does not run
See original GitHub issue❓ Questions and Help
I’ve run into two issues with running example/example.py
- The dataset name in the
stable
branch is wrong (fixed inmaster
, 7a276e3db3ae5add52332624302b6790169a8b01), perhaps this should be cherrypicked intostable
? - There is some strange pointnav import bug I cannot track down present in both
stable
andmaster
. Perhaps I’ve installed the api incorrectly?
(habitat) smorad@smorad-ThinkPad-T490:~/code/cambridge/habitat-api$ python3 examples/example.py
2019-12-19 13:19:46,441 Initializing dataset PointNav-v1
Traceback (most recent call last):
File "examples/example.py", line 25, in <module>
example()
File "examples/example.py", line 11, in example
env = habitat.Env(config=habitat.get_config("configs/tasks/pointnav.yaml"))
File "/home/smorad/code/cambridge/habitat-api/habitat/core/env.py", line 74, in __init__
id_dataset=config.DATASET.TYPE, config=config.DATASET
File "/home/smorad/code/cambridge/habitat-api/habitat/datasets/registration.py", line 19, in make_dataset
return _dataset(**kwargs)
File "/home/smorad/code/cambridge/habitat-api/habitat/datasets/pointnav/__init__.py", line 38, in __init__
raise pointnav_import_error
File "/home/smorad/code/cambridge/habitat-api/habitat/datasets/pointnav/__init__.py", line 20, in _try_register_pointnavdatasetv1
from habitat.datasets.pointnav.pointnav_dataset import (
File "/home/smorad/code/cambridge/habitat-api/habitat/datasets/pointnav/pointnav_dataset.py", line
15, in <module>
from habitat.tasks.nav.nav import (
File "/home/smorad/code/cambridge/habitat-api/habitat/tasks/nav/nav.py", line 29, in <module>
from habitat.sims.habitat_simulator.actions import HabitatSimActions
File "/home/smorad/code/cambridge/habitat-api/habitat/sims/habitat_simulator/actions.py", line 12,
in <module>
import habitat_sim
File "/usr/local/lib/python3.6/dist-packages/habitat_sim-0.1.3-py3.6-linux-x86_64.egg/habitat_sim/__init__.py", line 14, in <module>
from habitat_sim.nav import *
File "/usr/local/lib/python3.6/dist-packages/habitat_sim-0.1.3-py3.6-linux-x86_64.egg/habitat_sim/nav/__init__.py", line 1, in <module>
from habitat_sim._ext.habitat_sim_bindings import (
ImportError: generic_type: type "MapStringString" is already registered!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How to not run an example using roxygen2? - Stack Overflow
I'm writing a geocoding function right now that relies on having a Bing Maps Key. Obviously I'd rather not publish mine, and the...
Read more >"TrustZone_Cortex-A9AC6" example does not run normally
Hi, I am struggling in running the ready-examples of the ARM development studio IDE. I demonstrate the "TrustZone_Cortex-A9AC6" example here ...
Read more >What to do if your program doesn't run
What to do if your program doesn't run · 1. Look at your output! · 2. Run your compiler with warning messages and...
Read more >Examples not running | Sololearn: Learn to code for FREE!
When i'm trying to run the given example codes (not the pro ones), it says i have to pay for it. But my...
Read more >Run applications | IntelliJ IDEA Documentation - JetBrains
If you are not going to pass any parameters to your program, and your program does not require any specific actions to be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@smorad thank you for flagging it. I updated
stable
tag to include the fix. It should fixed now. You can always check how to install habitat-sim on fresh Ubuntu in our continuous testing. That’s how we make sure habitat-sim and habitat-api installation and examples, tests and baselines are not broken with new commits.Closing as the issue looks resolved.