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

pymunk.pyglet_util using wrong keyword argument to drawcircle #269

Open
zouflain opened this issue Jan 18, 2025 · 2 comments
Open

pymunk.pyglet_util using wrong keyword argument to drawcircle #269

zouflain opened this issue Jan 18, 2025 · 2 comments

Comments

@zouflain
Copy link

Image

Not sure how this error arose, but the pymunk\pyglet_util.py file has numerous errors in it that cause a fatal exception when attempting to use the pyglet_util module for drawing. The pyglet.shapes.Line object takes a "thickness" keyword argument that is omitted from the call in pyglet_util and is instead given a "width" argument that raises an exception.

I happened to encounter this error at pymunk\pyglet_util.py line 127, but it appears that every instance of the pyglet.shapes.Line object being initialized is wrong.

@viblo
Copy link
Owner

viblo commented Jan 18, 2025

Earlier today I released Pymunk 6.11.0 that should fix this. (I guess you have an older version?)

@zouflain
Copy link
Author

Earlier today? Now that's hilarious timing. No, I noted this late last night just before bed and have not updated to what is apparently a brand new release. Talk about a timely response!

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

No branches or pull requests

2 participants