Closed harrybraviner closed 4 years ago
https://github.com/benelot/pybullet-gym/pull/35 seems to fix this.
Thanks for helping each other out!I am going to merge #35 asap since it seems to be just a minor refactoring on the pybullet side which made it break on my side. Cheers!
On Thu, Dec 19, 2019 at 8:50 AM Yuri notifications@github.com wrote:
35 https://github.com/benelot/pybullet-gym/pull/35
seems to fix this.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/benelot/pybullet-gym/issues/36?email_source=notifications&email_token=AAXXXK4REUEVRSSAHKR5KW3QZMRVHA5CNFSM4J4O3ZL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHIXXWY#issuecomment-567376859, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXXXKZ3XC7XVYBC5GNZUCDQZMRVHANCNFSM4J4O3ZLQ .
I anyone has the time to check on his/her side if everything works again, I would be super happy.
I had the exact same issue about a week ago - just updated my install today and it now works for me. Thanks for the fix!
Thanks for confirming that this fixes the issue.
Seems to be a problem with this again.
pybullet build time: May 28 2020 11:47:36
current_dir=/Users/isacar/workspace/rl_target_norm/venv/lib/python3.7/site-packages/pybullet_envs/bullet
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/isacar/workspace/rl_target_norm/gym/gym/envs/registration.py", line 145, in make
return registry.make(id, **kwargs)
File "/Users/isacar/workspace/rl_target_norm/gym/gym/envs/registration.py", line 90, in make
env = spec.make(**kwargs)
File "/Users/isacar/workspace/rl_target_norm/gym/gym/envs/registration.py", line 59, in make
cls = load(self.entry_point)
File "/Users/isacar/workspace/rl_target_norm/gym/gym/envs/registration.py", line 18, in load
mod = importlib.import_module(mod_name)
File "/Users/isacar/workspace/rl_target_norm/venv/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/isacar/workspace/rl_target_norm/pybullet-gym/pybulletgym/envs/mujoco/envs/pendulum/inverted_pendulum_env.py", line 1, in <module>
from pybulletgym.envs.mujoco.envs.env_bases import BaseBulletEnv
File "/Users/isacar/workspace/rl_target_norm/pybullet-gym/pybulletgym/envs/mujoco/envs/env_bases.py", line 4, in <module>
from pybullet_envs.bullet import bullet_client
ImportError: cannot import name 'bullet_client' from 'pybullet_envs.bullet' (/Users/isacar/workspace/rl_target_norm/venv/lib/python3.7/site-packages/pybullet_envs/bullet/__init__.py)
Version of pybullet:
> pip uninstall pybullet
Found existing installation: pybullet 2.7.9
I installed pybullet==2.5.6 and then it worked.
Installing pybullet-gym as per instructions in the README fails on new conda environments due to incompatibility with pybullet 2.6.0. Attempting to create an
env
byresults in this error:
After some experimentation I discovered that downgrading
pybullet
usingfixes the issue. In pybullet 2.6.0 the
bullet_client.py
file is indeed completely absent.