I got this error with pyglet 1.4  on a new raspi 4 with raspian buster:

Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/pyglet/__init__.py", line 
353, in __getattr__
return getattr(self._module, name)
AttributeError: 'NoneType' object has no attribute 'Sprite'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./pyglettest.py", line 66, in <module>
class Picmove(pyglet.sprite.Sprite):
File "/home/pi/.local/lib/python3.7/site-packages/pyglet/__init__.py", line 
359, in __getattr__
__import__(import_name)
File "/home/pi/.local/lib/python3.7/site-packages/pyglet/sprite.py", line 
109, in <module>
from pyglet.gl import *
File "/home/pi/.local/lib/python3.7/site-packages/pyglet/gl/__init__.py", 
line 237, in <module>
import pyglet.window
File 
"/home/pi/.local/lib/python3.7/site-packages/pyglet/window/__init__.py", 
line 1889, in <module>
gl._create_shadow_window()
File "/home/pi/.local/lib/python3.7/site-packages/pyglet/gl/__init__.py", 
line 209, in _create_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File 
"/home/pi/.local/lib/python3.7/site-packages/pyglet/window/xlib/__init__.py", 
line 171, in __init__
super(XlibWindow, self).__init__(*args, **kwargs)
File 
"/home/pi/.local/lib/python3.7/site-packages/pyglet/window/__init__.py", 
line 642, in __init__
self._create()
File 
"/home/pi/.local/lib/python3.7/site-packages/pyglet/window/xlib/__init__.py", 
line 265, in _create
self.context.set_vsync(self._vsync) # XXX ?
File "/home/pi/.local/lib/python3.7/site-packages/pyglet/gl/xlib.py", line 
255, in set_vsync
glxext_mesa.glXSwapIntervalMESA(interval)
File "/home/pi/.local/lib/python3.7/site-packages/pyglet/gl/lib.py", line 
64, in MissingFunction
raise MissingFunctionException(name, requires, suggestions)
pyglet.gl.lib.MissingFunctionException: glXSwapIntervalMESA is not exported 
by the available OpenGL driver. MESA_swap_control is required for this 
functionality.

The output of glxinfo looks mostly similar to my ubuntu 18.04 desktop.

Any idea how to fix this? Or is this a raspian-bug?

Thx

Volker

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyglet-users/5a0a2c47-464f-4e7f-9abc-bceb4cc09568%40googlegroups.com.

Reply via email to