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

Box2D breaks in fresh installation on Ubuntu #334

Closed
naeioi opened this issue Oct 8, 2018 · 0 comments · Fixed by #335
Closed

Box2D breaks in fresh installation on Ubuntu #334

naeioi opened this issue Oct 8, 2018 · 0 comments · Fixed by #335
Assignees
Labels
bug Something isn't working packaging

Comments

@naeioi
Copy link
Member

naeioi commented Oct 8, 2018

Box2D breaks in freash installation on Ubuntu. Running examples/tf/trpo_cartpole.py triggers following traceback.

python3 examples/tf/trpo_cartpole.py 
-----
Traceback (most recent call last):
  File "examples/tf/trpo_cartpole.py", line 3, in <module>
    from garage.envs.box2d import CartpoleEnv
  File "/media/kzhu/OS/Users/naeio/Documents/prog/18USC/resl/garage/garage/envs/box2d/__init__.py", line 1, in <module>
    from garage.envs.box2d.box2d_env import Box2DEnv
  File "/media/kzhu/OS/Users/naeio/Documents/prog/18USC/resl/garage/garage/envs/box2d/box2d_env.py", line 9, in <module>
    from garage.envs.box2d.box2d_viewer import Box2DViewer
  File "/media/kzhu/OS/Users/naeio/Documents/prog/18USC/resl/garage/garage/envs/box2d/box2d_viewer.py", line 1, in <module>
    from Box2D import b2ContactListener
  File "/home/kzhu/miniconda2/envs/garage/lib/python3.6/site-packages/Box2D/__init__.py", line 20, in <module>
    from .Box2D import *
  File "/home/kzhu/miniconda2/envs/garage/lib/python3.6/site-packages/Box2D/Box2D.py", line 435, in <module>
    _Box2D.RAND_LIMIT_swigconstant(_Box2D)
AttributeError: module '_Box2D' has no attribute 'RAND_LIMIT_swigconstant'

This issue is mentioned in openai/gym#100 and resolved using openai/gym#100 (comment).

naeioi added a commit that referenced this issue Oct 8, 2018
Before box2d-py 2.3.4, box2d-py works on Linux but breaks on OSX, and
Box2D-kengz works on OSX but breaks on Linux. box2d-py 2.3.4 fixes issue
on OSX and now works on both platforms, and is actively by OpenAI.

See openai/gym#1120.
@naeioi naeioi self-assigned this Oct 8, 2018
@naeioi naeioi added the envs label Oct 8, 2018
naeioi added a commit that referenced this issue Oct 8, 2018
@ryanjulian ryanjulian added bug Something isn't working packaging and removed envs labels Oct 9, 2018
naeioi added a commit that referenced this issue Oct 9, 2018
Remove pip box2d-py in
- setup_linux.sh
- setup_osx.sh
- Dockerfile.ci
naeioi added a commit that referenced this issue Oct 9, 2018
naeioi added a commit that referenced this issue Oct 15, 2018
Before box2d-py 2.3.4, box2d-py works on Linux but breaks on OSX, and
Box2D-kengz works on OSX but breaks on Linux. box2d-py 2.3.4 fixes issue
on OSX and now works on both platforms, and is actively by OpenAI.

See openai/gym#1120.
naeioi added a commit that referenced this issue Oct 15, 2018
naeioi added a commit that referenced this issue Oct 15, 2018
Remove pip box2d-py in
- setup_linux.sh
- setup_osx.sh
- Dockerfile.ci
naeioi added a commit that referenced this issue Oct 15, 2018
naeioi added a commit that referenced this issue Oct 15, 2018
naeioi added a commit that referenced this issue Oct 15, 2018
naeioi added a commit that referenced this issue Oct 17, 2018
naeioi added a commit that referenced this issue Oct 17, 2018
Before box2d-py 2.3.4, box2d-py works on Linux but breaks on OSX, and
Box2D-kengz works on OSX but breaks on Linux. box2d-py 2.3.4 fixes issue
on OSX and now works on both platforms, and is actively by OpenAI.

See openai/gym#1120.
naeioi added a commit that referenced this issue Oct 17, 2018
naeioi added a commit that referenced this issue Oct 17, 2018
Remove pip box2d-py in
- setup_linux.sh
- setup_osx.sh
- Dockerfile.ci
naeioi added a commit that referenced this issue Oct 17, 2018
ryanjulian pushed a commit that referenced this issue Oct 21, 2018
Before box2d-py 2.3.4, box2d-py works on Linux but breaks on OSX, and
Box2D-kengz works on OSX but breaks on Linux. box2d-py 2.3.4 fixes issue
on OSX and now works on both platforms, and is actively by OpenAI.

See openai/gym#1120.
ryanjulian pushed a commit that referenced this issue Oct 21, 2018
ryanjulian pushed a commit that referenced this issue Oct 21, 2018
Remove pip box2d-py in
- setup_linux.sh
- setup_osx.sh
- Dockerfile.ci
ryanjulian pushed a commit that referenced this issue Oct 21, 2018
naeioi added a commit that referenced this issue Oct 23, 2018
Before box2d-py 2.3.4, box2d-py works on Linux but breaks on OSX, and
Box2D-kengz works on OSX but breaks on Linux. box2d-py 2.3.4 fixes issue
on OSX and now works on both platforms, and is actively by OpenAI.

See openai/gym#1120.
naeioi added a commit that referenced this issue Oct 23, 2018
naeioi added a commit that referenced this issue Oct 23, 2018
Remove pip box2d-py in
- setup_linux.sh
- setup_osx.sh
- Dockerfile.ci
naeioi added a commit that referenced this issue Oct 23, 2018
naeioi added a commit that referenced this issue Oct 25, 2018
* Fix Box2D in fresh install (#334)

Before box2d-py 2.3.4, box2d-py works on Linux but breaks on OSX, and
Box2D-kengz works on OSX but breaks on Linux. box2d-py 2.3.4 fixes issue
on OSX and now works on both platforms, and is actively by OpenAI.

See openai/gym#1120.

* Cleanup (#334)

* Cleanup extra pip (#334)

Remove pip box2d-py in
- setup_linux.sh
- setup_osx.sh
- Dockerfile.ci

* Upgrade gym to 0.10.8 (#334)

* Remove assertion for Mujoco viewer close

This problem is resolved in #340

* Close all env

* Remove deadcode KNOWN_GYM_CLOSE_BROKEN
akumaraguru pushed a commit that referenced this issue Oct 26, 2018
* Fix Box2D in fresh install (#334)

Before box2d-py 2.3.4, box2d-py works on Linux but breaks on OSX, and
Box2D-kengz works on OSX but breaks on Linux. box2d-py 2.3.4 fixes issue
on OSX and now works on both platforms, and is actively by OpenAI.

See openai/gym#1120.

* Cleanup (#334)

* Cleanup extra pip (#334)

Remove pip box2d-py in
- setup_linux.sh
- setup_osx.sh
- Dockerfile.ci

* Upgrade gym to 0.10.8 (#334)

* Remove assertion for Mujoco viewer close

This problem is resolved in #340

* Close all env

* Remove deadcode KNOWN_GYM_CLOSE_BROKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packaging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants