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

Fail to import mujoco_py #789

Open
hsyfpv opened this issue Feb 18, 2024 · 1 comment
Open

Fail to import mujoco_py #789

hsyfpv opened this issue Feb 18, 2024 · 1 comment

Comments

@hsyfpv
Copy link

hsyfpv commented Feb 18, 2024

After following the instruction, I try to import mujoco_py on my macbook pro m3pro, I got this error.

(drone_pybullet) hsy@hsydeMacBook-Pro ~ % python -c 'import mujoco_py'
Import error. Trying to rebuild mujoco_py.
Traceback (most recent call last):
File "", line 1, in
File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/init.py", line 2, in
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/builder.py", line 504, in
cymj = load_cython_ext(mujoco_path)
File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/builder.py", line 111, in load_cython_ext
mod = load_dynamic_ext('cymj', cext_so_path)
File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/builder.py", line 130, in load_dynamic_ext
return loader.load_module()
ImportError: dlopen(/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/generated/cymj_2.1.2.14_310_macextensionbuilder_310.so, 0x0002): symbol not found in flat namespace '__PyGen_Send'

@hsyfpv
Copy link
Author

hsyfpv commented Feb 18, 2024

After following the instruction, I try to import mujoco_py on my macbook pro m3pro, I got this error.

(drone_pybullet) hsy@hsydeMacBook-Pro ~ % python -c 'import mujoco_py' Import error. Trying to rebuild mujoco_py. Traceback (most recent call last): File "", line 1, in File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/init.py", line 2, in from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/builder.py", line 504, in cymj = load_cython_ext(mujoco_path) File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/builder.py", line 111, in load_cython_ext mod = load_dynamic_ext('cymj', cext_so_path) File "/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/builder.py", line 130, in load_dynamic_ext return loader.load_module() ImportError: dlopen(/Users/hsy/anaconda3/envs/drone_pybullet/lib/python3.10/site-packages/mujoco_py/generated/cymj_2.1.2.14_310_macextensionbuilder_310.so, 0x0002): symbol not found in flat namespace '__PyGen_Send'

I solved this problem by downgrading my Python version to 3.9!

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

1 participant