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

'module' object has no attribute 'RAND_LIMIT' #99

Closed
StrangeTcy opened this issue Nov 24, 2017 · 2 comments
Closed

'module' object has no attribute 'RAND_LIMIT' #99

StrangeTcy opened this issue Nov 24, 2017 · 2 comments

Comments

@StrangeTcy
Copy link

StrangeTcy commented Nov 24, 2017

Currently, running python python/gps/gps_main.py box2d_arm_example
leads to the following error:

DEBUG:No gps_agent_pkg: gps_agent_pkg
ROS path [0]=/opt/ros/lunar/share/ros
ROS path [1]=/opt/ros/lunar/share
Traceback (most recent call last):
  File "python/gps/gps_main.py", line 414, in <module>
    main()
  File "python/gps/gps_main.py", line 348, in main
    hyperparams = imp.load_source('hyperparams', hyperparams_file)
  File "/home/gabriel/gps/experiments/box2d_arm_example/hyperparams.py", line 10, in <module>
    from gps.agent.box2d.arm_world import ArmWorld
  File "python/gps/agent/box2d/arm_world.py", line 2, in <module>
    import Box2D as b2
  File "/usr/local/lib/python2.7/dist-packages/Box2D/__init__.py", line 20, in <module>
    from .Box2D import *
  File "/usr/local/lib/python2.7/dist-packages/Box2D/Box2D.py", line 434, in <module>
    RAND_LIMIT = _Box2D.RAND_LIMIT
AttributeError: 'module' object has no attribute 'RAND_LIMIT'
INFO:signal_shutdown [atexit]

This is probably a problem with my installation of box2d; still, please take a look.

@cbfinn
Copy link
Owner

cbfinn commented Nov 24, 2017

This is most certainly an issue with your box2d installation

@StrangeTcy
Copy link
Author

This is a temporary solution to the issue, and it's not an issue with gps per se:

  1. Clone this repo
  2. Follow the Box2d setup, but
    do not clone pybox2d (it is seemingly broken at the moment), instead do
    pip install box2d-py

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