After updating OS all my scripts stopped working, most of the errors related to pyglet, and paths to some libraries, some errors that I came across:
Error occurred while running `from pyglet.gl import *`
HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install python-opengl'.
If you're running on a server, you may need a virtual frame buffer; something like this should work:
'xvfb-run -s "-screen 0 1400x900x24" python <your_script.py>'
ImportError: Can't find framework /System/Library/Frameworks/OpenGL.framework.
I researched, and tried, various possible solutions on the internet, but nothing solved, does anyone have an idea of how to fix this problem, I appreciate any help, I'm using python 3.8, but I tried on 3.7 too, and I was unsuccessful.
I have the same problem, is that means the OpenGl didn't be installed properly?
Well,there are some solutions. I have not tried them yet, good luck!
I had the same problem, and installing pyglet==1.5.11(as suggested in the discussion linked by @WayenVan) solved the issue.
@DarioBernardo How can you install pyglet==1.5.11 when the newest version of gym (0.17.3) requires pyglet between 1.4 and 1.5 at least according to my error message:
gym 0.17.3 requires pyglet<=1.5.0,>=1.4.0, but you'll have pyglet 1.5.11 which is incompatible
I get the same error, however pyglet get installed (I get "Successfully installed pyglet-1.5.11" message after the error). In fact when i try to run my code again it actually works. Try, I think should work for you as well if the pyglet get actually installed as it happens for me.
@DarioBernardo Yes you are 100% correct. It did get installed and now gym runs without an error
@DarioBernardo You are my lifesaver.
@DarioBernardo I did the same but when I run my code it still doesn't work 馃槄
@DarioBernardo Thanks for your help. I got the same error from pyglet and I try the method pip install pyglet==1.5.11 then the issue was addressed!
@emnabarred Mine didn't work at first as well. But it worked after closing everything and reopening.
I tried installing pyglet==1.5.11 and that fixed the ImportError, but now I get the following error: AttributeError: dlsym(0x104f43d80, class_getMethodImplementation_stret): symbol not found. Does anyone know what's this about, and/or how to fix it?
Btw, I'm running the code on MacbookPro M1.
@emnabarred Mine didn't work at first as well. But it worked after closing everything and reopening.
Unfortunately, it didn't work for me. I'm on the M1 chip if that has anything to do with this..
@emnabarred This https://github.com/pyglet/pyglet/pull/335 should be the fix, at least it did the job for me :)
@antic11d Thank you very much, this fixed my issue !
I had the same problem, and installing
pyglet==1.5.11(as suggested in the discussion linked by @WayenVan) solved the issue.
Thanks you for saving my life!
Most helpful comment
I get the same error, however pyglet get installed (I get "Successfully installed pyglet-1.5.11" message after the error). In fact when i try to run my code again it actually works. Try, I think should work for you as well if the pyglet get actually installed as it happens for me.