-
Notifications
You must be signed in to change notification settings - Fork 527
Description
Getting error:
(habitat) testunot@testunot:~/habitat-sim$ python examples/viewer.py --scene /home/testunot/habitat-sim/data/scene_datasets/habitat-test-scenes/skokloster-castle.glb
Traceback (most recent call last):
File "/home/testunot/habitat-sim/examples/viewer.py", line 19, in
from magnum import shaders, text
ImportError: cannot import name 'text' from 'magnum' (/home/testunot/miniconda3/envs/habitat/lib/python3.9/site-packages/magnum/init.py)
Reproduce:
conda activate habitat
git clone --branch stable https://github.com/facebookresearch/habitat-sim.git
sudo apt-get update
pip install -r requirements.txt
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libjpeg-dev libglm-dev libgl1 libegl1-mesa-dev mesa-utils xorg-dev freeglut3-dev
- HABITAT_WITH_BULLET=ON pip install . --no-build-isolation
- HABITAT_BUILD_GUI_VIEWERS=ON HABITAT_WITH_BULLET=ON pip install . --no-build-isolation
Both pip installs do not accurately install non-headless releases.
(habitat) testunot@testunot:~/habitat-sim$ conda list | grep habitat
packages in environment at /home/testunot/miniconda3/envs/habitat:
habitat-sim 0.3.3 pypi_0 pypi
habitat-sim-mutex 1.0 display_bullet aihabitat
withbullet 2.0 0 aihabitat`
cat build/CMakeCache.txt | grep "BUILD_GUI_VIEWERS"
BUILD_GUI_VIEWERS:BOOL=OFF
Solution:
HEADLESS=False HABITAT_WITH_BULLET=ON pip install . --no-build-isolation
cat build/CMakeCache.txt | grep "BUILD_GUI_VIEWERS"
BUILD_GUI_VIEWERS:BOOL=ON