question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example does not run

See original GitHub issue

❓ Questions and Help

I’ve run into two issues with running example/example.py

  1. The dataset name in the stable branch is wrong (fixed in master, 7a276e3db3ae5add52332624302b6790169a8b01), perhaps this should be cherrypicked into stable?
  2. There is some strange pointnav import bug I cannot track down present in both stable and master. 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:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mathfaccommented, Jan 10, 2020

@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.

0reactions
mathfaccommented, Feb 6, 2020

Closing as the issue looks resolved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found