Skip to content
Advertisement

Python 3.6.4 Arcade Module Window Errors? {pyglet.gl.lib.GLException: b’invalid enumerant’}

UPDATE:

I checked the graphics cards installed on the computers.

The one where it “works” has Nvidia Graphics and the other has Intel HD R graphics under display adapter in Device Manager. I’m assuming the Intel HD R graphics driver is not sufficient (does not contain the OpenGL required?).

What do I need to get on the Intel HD R graphics computer in order for the arcade module to work?

ORIGINAL QUESTION:

Experiencing a very weird issue where python code I’ve written works on one computer but not on another one and I’m not sure why…

I have Python 3.6.4 installed on both computers. Any version which is 3.6 + should be able to run the Arcade module.

This is my code, super simple stuff:

JavaScript

Works fine on one computer, but on the other, I get this error:

Code Format:

JavaScript

Screenshot: enter image description here

Question: Why does it work on one computer and not the other?

Any help would be greatly appreciated. Thank you!

Advertisement

Answer

That line of code enables OpenGL multisampling. It is required for anti-aliasing. It appears that isn’t supported with the graphics card/driver combination.

You can create an arcade.Window instance with antialiasing=False, but the open_window command you are using unfortunately does not support that in 2.0.1.

As issue has been opened to downgrade gracefully if multisampling isn’t supported:

https://github.com/pvcraven/arcade/issues/339

Advertisement