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

improving ImportError for Box2D #1009

Conversation

turbotimon
Copy link
Contributor

@turbotimon turbotimon commented Apr 10, 2024

Description

Since the hint for installing swig was already added to the docs in #683 to fix #662 (and many other like #988 #881 #948 #892 #735 #662 ...), I would like to improve the ImportError message.

By replacing the error message from

'Box2D is not installed, run `pip install "gymnasium[box2d]"`'

to

'Box2D is not installed, you can install it by run `pip install swig` followed by `pip install "gymnasium[box2d]"`'

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Copy link
Member

@pseudo-rnd-thoughts pseudo-rnd-thoughts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, this is a great idea. Installing Box2D is more of a pain than we wish, I hope that this will help future users.

@pseudo-rnd-thoughts pseudo-rnd-thoughts merged commit aa566f9 into Farama-Foundation:main Apr 10, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

[Bug Report] Installing box2d on colab
2 participants