Pyglet error when running any code

Hi everyone!
psychopy keeps sending me this error message whenever i try to run a code (whether it is something that runs fine on a different computer or something very simple like just an image).
i keep getting the same error message ending with:
pyglet.gl.lib.GLException: b'invalid enumerant'

full error code:

Running: S:\Lab-Shared\Experiments\KarinNeglect\experiment\experiment 1_new_edit_lastrun.py

52.3525 INFO Loaded monitor calibration from [‘2022_03_16 12:23’]
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community. Contribute - pygame wiki
2.7926 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
Traceback (most recent call last):
File “S:\Lab-Shared\Experiments\KarinNeglect\experiment\experiment 1_new_edit_lastrun.py”, line 142, in
footprints1 = visual.ImageStim(
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\image.py”, line 101, in init
self.color = color
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\basevisual.py”, line 645, in color
self.foreColor = value
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\image.py”, line 236, in foreColor
self.setImage(self._imName, log=False)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\image.py”, line 305, in setImage
setAttribute(self, ‘image’, value, log)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\tools\attributetools.py”, line 134, in setAttribute
setattr(self, attrib, value)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\tools\attributetools.py”, line 27, in set
newValue = self.func(obj, value)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\image.py”, line 286, in image
self.isLumImage = self._createTexture(value, id=self._texID,
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\basevisual.py”, line 1161, in _createTexture
GL.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_GENERATE_MIPMAP,
File “C:\Program Files\PsychoPy\lib\site-packages\pyglet\gl\lib.py”, line 106, in errcheck
raise GLException(msg)
pyglet.gl.lib.GLException: b’invalid enumerant’
################ Experiment ended with exit code 1 [pid:13816] #################

Thanks!

Hello Karin, have you found a solution for this in the meantime? A student of mine is having the same error message.

Hello,
sadly I haven’t fount the solution to my problem, would be happy to get an update if you do find a solution to this problem!