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

[Bug Report] No Matches Found Installing Optional Packages #948

Closed
thatcort opened this issue Mar 2, 2024 · 2 comments
Closed

[Bug Report] No Matches Found Installing Optional Packages #948

thatcort opened this issue Mar 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@thatcort
Copy link

thatcort commented Mar 2, 2024

Describe the bug

When I try to install gymnasium with [box2d] or [all] I get an error message "no matches found". I can install the base gymnasium package fine: pip install gymnasium works.

Code example

> pip install gymnasium[box2d]
zsh: no matches found: gymnasium[box2d]


### System info

MacOS 14.3.1
Python 3.11.4
Pip 24.0

### Additional context

_No response_

### Checklist

- [X] I have checked that there is no similar [issue](https://github.com/Farama-Foundation/Gymnasium/issues) in the repo
@thatcort thatcort added the bug Something isn't working label Mar 2, 2024
@thatcort
Copy link
Author

thatcort commented Mar 2, 2024

I found a StackOverflow suggesting to install Swig and and Box2D separately (https://stackoverflow.com/questions/51811263/problems-pip-installing-box2d), so I tried running:

    brew install swig
    pip install box2d-py
    pip install box2d

But now when I try to create the environment using env = gym.make("LunarLander-v2") I get the following error:
AttributeError: module '_Box2D' has no attribute 'RAND_LIMIT_swigconstant'

Any help with getting the environment to work is very appreciated!

@thatcort
Copy link
Author

thatcort commented Mar 2, 2024

I got it to work by also installing box2d-kengz and pygame

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

No branches or pull requests

1 participant