-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
AttributeError: module 'Box2D._Box2D' has no attribute 'RAND_LIMIT' #647
Comments
This is a known issue, and there is information here: I'm not sure regarding an anaconda environment if those dependencies should already be setup right, but since you're having the error, perhaps the link above can help |
As @indescribable say, try @onaclov2000 Thx!
it works well
|
I am trying to use TensorFlow with my GPU on the CarRacing environment. This is really frustrating because TensorFlow with GPU only supports python 3.5.* and 3.6.* on Windows.
I tried with the newest swig (3.0.12) and 3.0.2, the one mentioned in #100 as working. Neither one worked, giving the same error:
|
@nbgraham, as far as I can tell the underlying SWIG regression, which is discussed in some detail here, was addressed in this patch. However, it seems that when you One solution is to use box2d-py, as @Jackiexiao suggested above. I'm running Python 3.6, so I had to build box2d-py from source by following these instructions instead of installing the pre-built 3.4 package. As long Hope this helps! |
Installing pybox2d from source seemed to work. I have no idea what minGW and MSYS are, but I have Visual Studio installed, so maybe that's why it worked. I got this error when trying to use the monitor
It didn't give instructions on how to install ffmpeg on Windows. I found the ffmpeg download page, downloaded the zip, extracted it, and added the bin folder to my path and got it working. Everything seems to be working, thanks! |
pip3 install box2d box2d-kengz |
python3.5 ubuntu16 |
come into the same problem. My environment is conda,python=3.5.And I use
finally it works.@Jackiexiao |
This is still broken. building gym from source using these instructions..
pip3 install box2d box2d-kengz solved it for me, on mac OS |
Thanks for all the suggestions, but this is still broken for myself under Ubuntu 16.04 with Python 3.5.2. This was marked as closed; what was done to resolve this fundamentally? |
I had the same problem. Doing the simple
Worked for me. I'm running python 2.7, on ubuntu. |
@Khev what os were you running? I think OS matters here, as I understand it, mac/windows/linux all need different steps to solve ;) |
My bad -- have updated my comment :-) |
@Khev I realized my comment didnt have OS either :) Fixed it too! |
It helps on Ubuntu and Windows 10. |
TDS article with more details: |
Important here is the command pip3 install gym[box2d]. Only installing box2d and box2d-kengz does not solve the problem for me. |
|
pip install box2d-py pygame worked for me on my mbp m1pro |
Also worked for me on Fedora 38 |
I can't run the LunarLander-v2 env, error occurs
The text was updated successfully, but these errors were encountered: