-
-
Notifications
You must be signed in to change notification settings - Fork 714
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
[Bug Report] Installing box2d on colab #662
Comments
Not an actual bug, but it's more a lack of (critical, in my opinion) documentation. To run the example (or any env that requires !apt-get install swig
!pip install gymnasium[box2d] |
Line 39 in fa8a982
box2d is installed before swig even though it depends on swig to be built.I tried this in #677 but it actually does not work because it seems swig needs to be installed beforehand so that its executable can be called. |
@robertoschiavone Would you be able to make a PR to improve the documentation. You should just need to modify the box2d environment's docstring |
…347) ## Description fixes #346 Also encountered an issue with box2d not installing properly. Thus, this PR also moves swig installation before box2d so that swig is available when box2d is being built. See Farama-Foundation/Gymnasium#662 for more info ## TODO - [ ] test code on linux machine ## Questions <!-- Any concerns or points of confusion? --> ## Status - [x] I have read the guidelines in [CONTRIBUTING.md](https://github.com/icaros-usc/pyribs/blob/master/CONTRIBUTING.md) - [x] I have formatted my code using `yapf` - [x] I have tested my code by running `pytest` - [x] I have linted my code with `pylint` - [x] I have added a one-line description of my change to the changelog in `HISTORY.md` - [x] This PR is ready to go --------- Co-authored-by: Bryon Tjanaka <bryon.tjanaka@gmail.com> Co-authored-by: Bryon Tjanaka <38124174+btjanaka@users.noreply.github.com>
Hi @pseudo-rnd-thoughts, I created #683 to resolve this issue. Let me know what you think! |
Hi @pseudo-rnd-thoughts can we improve the ImportError message to please? see my PR #1009 |
Describe the bug
It's not great that the example on the documentation home page does not work. I tried running that example (copy-pasted exactly from the home page) in a Google Colab notebook (after installing gymnasium with
!pip install gymnasium
) and was immediately faced with this error: "DependencyNotInstalled: Box2D is not installed, runpip install gymnasium[box2d]
".When I follow the suggestion and
!pip install gymnasium[box2d]
run in new code cell, the installation fails due this this error: "ERROR: Could not build wheels for box2d-py, which is required to install pyproject.toml-based projects".Code example
!pip install gymnasium
The text was updated successfully, but these errors were encountered: