Skip to content

v0.3.3 Building from source now defaults to HEADLESS and can not be set by HABITAT_BUILD_GUI_VIEWERS #2620

@hh13g22

Description

@hh13g22

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions