Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library: habitat_sim_bindings.so -- Supported Python Version: Unknown #5

Closed
HighlyAuditory opened this issue Mar 7, 2019 · 2 comments

Comments

@HighlyAuditory
Copy link

HighlyAuditory commented Mar 7, 2019

I have python2.7, python 3.5 and python 3.6 installed on my gpu laptop, ubuntu 16.04.
I tried to install api with python3.6, and ./build.sh as indicated in sim readme.
I tested the sim, it works fine.
Then I test on example/example.py, error occurs

Traceback
(most recent call last):
File "/habitat-sim/habitat_sim/bindings/init.py", line 10, in
from habitat_sim._ext.habitat_sim_bindings import Simulator as SimulatorBackend
ModuleNotFoundError: No module named 'habitat_sim._ext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
/habitat-sim/habitat_sim/bindings/dev_bindings.py", line 72, in
import habitat_sim_bindings
ImportError: /habitat-sim/build/esp/bindings/habitat_sim_bindings.so: undefined symbol: _Py_ZeroStruct
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples/example.py", line 9, in
import demo_runner as dr
File "
/habitat-sim/examples/demo_runner.py", line 15, in
import habitat_sim
File "/habitat-sim/habitat_sim/init.py", line 12, in
from .simulator import *
File "
/habitat-sim/habitat_sim/simulator.py", line 7, in
from habitat_sim.bindings import *
File "/habitat-sim/habitat_sim/bindings/init.py", line 18, in
from .dev_bindings import *
File "
/habitat-sim/habitat_sim/bindings/dev_bindings.py", line 84, in
raise ImportError(msg)
ImportError:
Could not import habitat sim bindings
Please follow the building instructions in the README
Found the following libraries
Library: habitat_sim_bindings.so -- Supported Python Version: Unknown
Your python interpreter is version 36
Please re-build habitat sim with this version of python

I have tried to install api for 2 days. Any advice will be appreciated! Thanks!

@erikwijmans
Copy link
Contributor

We currently don't have a nice way to specify different versions of system python and will just generate bindings for whatever python is (which generally defaults to 2.7). We highly recommend using conda environments to fix this (things should work as expected there, and python setup.py install will work).

If you want to stick with system python, there is a work-around for using different versions of system python here: facebookresearch/habitat-sim#2

@HighlyAuditory
Copy link
Author

Thanks. Conda solved my problem.

erikwijmans added a commit to erikwijmans/habitat-lab that referenced this issue Mar 5, 2020
Dataset iteration improvements; preloading and removal of the lengths array
mathfac pushed a commit that referenced this issue May 6, 2020
cpaxton pushed a commit that referenced this issue Jan 17, 2023
* Add docstring for roscore wrapper

* Normalize when comparing errors

* Tune controllers

* Tune controller and tolerances

* Remove relative paths
jimmytyyang pushed a commit that referenced this issue Jan 21, 2024
jimmytyyang pushed a commit that referenced this issue Jan 21, 2024
henrysamer added a commit that referenced this issue Jan 26, 2024
Modified Installation Step #5 in README.md
henrysamer added a commit that referenced this issue Jan 26, 2024
…) Fixed episodes_filter episode order not respected (3) added check for data folder in current working directory (#1774)

* (1) Fixed error when using config habitat_hitl.episodes_filter='4' (2) Fixed episodes_filter episode order not respected (3) added check for data folder in current working directory

* Update README.md

Updated README.md with reviewer rewording recommendation.

* Update README.md

Modified Installation Step #5 in README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants