habitat-sim icon indicating copy to clipboard operation
habitat-sim copied to clipboard

no example/viewer.py

Open YoKai-Wang opened this issue 2 years ago • 1 comments

I have done :

conda create -n habitat python=3.7 cmake=3.14.0 conda activate habitat conda install habitat-sim withbullet -c conda-forge -c aihabitat

My problem is the habitat-sim which installed by conda is where , "path/to/habitat" --> what means the "path" and I find one hatibta-sim in "/home/.conda/envs/habi/lib/python3.7/site-packets",but it doesn't include the folder "example",so I can't find the example/viewer.py to test 图片

I appreciately you can help me , thank you .

YoKai-Wang avatar Aug 03 '22 03:08 YoKai-Wang

Hey @WWenMing, if you want the examples you'll need to clone the repo and run them from that directory. You can run the examples from a conda install, but as you noted they don't come with the conda package.

aclegg3 avatar Aug 03 '22 16:08 aclegg3

hello, @aclegg3 when I run the python examples/viewer.py --scene Data/scene_datasets/habitat-test-scenes/skokloster-castle.glb I met Traceback (most recent call last): File "examples/viewer.py", line 19, in from magnum import shaders, text ImportError: cannot import name 'text' from 'magnum'

dwei-k avatar Oct 24 '22 11:10 dwei-k

hello, @aclegg3 when I run the python examples/viewer.py --scene Data/scene_datasets/habitat-test-scenes/skokloster-castle.glb I met Traceback (most recent call last): File "examples/viewer.py", line 19, in from magnum import shaders, text ImportError: cannot import name 'text' from 'magnum'

How did you solve this problem? I got an same issue

maengjemo avatar Mar 29 '23 05:03 maengjemo

@jemo-mh hi, it has been a long time for me, I remeber I didn't clone the stable tag of this repo at that time, when I clone the right branch, it was solved.

dwei-k avatar Mar 29 '23 06:03 dwei-k

@jemo-mh hi, it has been a long time for me, I remeber I didn't clone the stable tag of this repo at that time, when I clone the right branch, it was solved.

Thanks for your help! I will try it. Which method did you install habitat-sim?? Did you use pip install?, Anaconda? or setup.py method?

maengjemo avatar Mar 29 '23 06:03 maengjemo

@jemo-mh hi, it has been a long time for me, I remeber I didn't clone the stable tag of this repo at that time, when I clone the right branch, it was solved.

Thanks for your help! I will try it. Which method did you install habitat-sim?? Did you use pip install?, Anaconda? or setup.py method? I used setup.py

dwei-k avatar Mar 29 '23 08:03 dwei-k

Any updates on how to solve the ImportError: cannot import name 'text' from 'magnum' error? I am facing the same issue.

Youmna-H avatar Sep 04 '23 13:09 Youmna-H