facebookresearch / habitat-lab

A modular high-level library to train embodied AI agents across a variety of tasks and environments.
https://aihabitat.org/
MIT License
1.91k stars 478 forks source link

RuntimeError: Incompatible version of Habitat-Sim detected, please upgrade habitat_sim #554

Closed ethanabrooks closed 3 years ago

ethanabrooks commented 3 years ago

🐛 Bug

Command

python myscript.py

To Reproduce

Steps to reproduce the behavior:

# myscript.py

import habitat

# Load embodied AI task (PointNav) and a pre-specified virtual robot
env = habitat.Env(
    config=habitat.get_config("configs/tasks/pointnav.yaml")
)

observations = env.reset()

# Step through environment with random actions
while not env.episode_over:
    observations = env.step(env.action_space.sample())

Run

❯ python myscript.py
Traceback (most recent call last):
  File "myscript.py", line 4, in <module>
    env = habitat.Env(config=habitat.get_config("configs/tasks/pointnav.yaml"))
  File "/Users/ethanbrooks/habitat-lab/habitat/config/default.py", line 363, in get_config
    config.merge_from_file(config_path)
  File "/Users/ethanbrooks/miniconda3/envs/habitat/lib/python3.6/site-packages/yacs/config.py", line 211, in merge_from_file
    with open(cfg_filename, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'configs/tasks/pointnav.yaml'

Expected behavior

Not sure, but no errors...

Additional context

❯ conda list | ag habitat
# packages in environment at /Users/ethanbrooks/miniconda3/envs/habitat:
habitat                   0.1.6                     dev_0    <develop>
habitat-sim               0.1.6                    pypi_0    pypi

on commit 38dd4d2dd1ee0a582f2cc11b173693ed272686a4 for habitat lab.

Skylion007 commented 3 years ago

If you are using from the latest master, you need to use the the habitat-sim nightly channel. We should have a new version out soon.

ethanabrooks commented 3 years ago

This seems to work. Thank you!