facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.54k stars 414 forks source link

ImportError: cannot import name 'ReplayRenderer' from 'habitat_sim' (/usr/local/envs/pvr_habitat/lib/python3.8/site-packages/habitat_sim-0.2.3-py3.8-linux-x86_64.egg/habitat_sim/__init__.py) #2300

Closed rebecajohn closed 6 months ago

rebecajohn commented 7 months ago

PluginManager::Manager::Manager(): none of the plugin search paths in {../lib/magnum/importers, magnum/importers} exists and pluginDirectory was not set, skipping plugin discovery Traceback (most recent call last): File "run.py", line 12, in import habitat File "/content/habitat-lab/habitat-lab/habitat/init.py", line 17, in from habitat.core.vector_env import ThreadedVectorEnv, VectorEnv File "/content/habitat-lab/habitat-lab/habitat/core/vector_env.py", line 35, in from habitat.core.batch_rendering.env_batch_renderer import EnvBatchRenderer File "/content/habitat-lab/habitat-lab/habitat/core/batch_rendering/env_batch_renderer.py", line 33, in from habitat_sim import ReplayRenderer, ReplayRendererConfiguration ImportError: cannot import name 'ReplayRenderer' from 'habitat_sim' (/usr/local/envs/pvr_habitat/lib/python3.8/site-packages/habitat_sim-0.2.3-py3.8-linux-x86_64.egg/habitat_sim/init.py)

aclegg3 commented 6 months ago

Hey @rebecajohn, possibly this is a version API mixup. It looks like the issue is origination from habitat-lab importing habitat-sim. Possibly the version of lab you are using is well advanced from sim v0.2.3?

If you need further support on this, please open an issue on habitat-lab and include your lab commit so we can advise on compatibility.