-
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
Box2d won't find some RAND_LIMIT_swigconstant #1015
Comments
i also have this issue |
Just to pitch in as I haven't seen this particular error/solution noted previously, I've just had this same issue and found it was due to missing a package that would cause an error during Box2D installation, but not stop the installation process. First uninstall Box2D If you try reinstall with pip install Box2D, and see this launchpadlib error Uninstall Box2D again, and then install testresources Then finally resintall Box2D, hopefully now your code runs. |
Yeah, I just hit this same issue on gym.version 0.10.5. In fact, Box2D did not correctly install as a dependency of gym, then when manually installed on macos, it borks with this "RAND_LIMIT" error. Perhaps Box2D was not the best design choice? Maybe it should be replaced with something more reliable and cross platform? |
Thank you so much aransena, you have fixed my problem! |
Install pybox2d (not available on pypi) instead of Box2DHit this issue on Debian 9. Had swig 3.0.10 (this is the one that is installed by default upon running)
My issue was that I was installing a Python package called Box2D. But when I uninstalled Box2D and installed pybox2d (https://github.com/pybox2d/pybox2d) everything started to work. Note, pybox2d is not available on pypi, so you have to install it following the instructions in INSTALL.md in the github repo. But here it is for your convenience: Download the repo
Unzip the source
Change directory to the unzipped directory
Build Box2DThis is the original Box2D C++ package found here (https://box2d.org/) and does not own the Python package Box2D.
Ignore all warnings it shows. Install pybox2d
Depending on python3 installation, you might have to run the last command with a |
This should be fixed with |
pip install --user box2d-py==2.3.5 |
1 similar comment
pip install --user box2d-py==2.3.5 |
|
As far as I'm aware, #100 isn't fixed, but is still closed. This has been acknowledged a couple of times in that issue but isn't being reopened for some reason.
A workaround is to uninstall box2d-kengz (
pip uninstall box2d-kengz
) then install pybox2d.Can we get pybox2d as a dependency for gym perhaps?
The text was updated successfully, but these errors were encountered: