You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hello, after downloading everything, I cannot start the program on the terminal. When entering the command start-video-annotator to run the program, I get this error: ('Unable to load OpenGL library', 'dlopen(OpenGL, 10): image not found', 'OpenGL', None). It seems Big Sur does not support OpenGL. I was wondering what are some suggestions as to runnin this program?
If you are at ease to change already installed python library files, there is an ugly workaround that works.
If you go to the folder mentioned in the error you get and edit the ctypesloader.py file (should be something similar to: /Users/<your_user>/opt/anaconda3/envs/videoannotator/lib/python3.9/site-packages/OpenGL/platform/ctypesloader.py and search for the following line: fullName = util.find_library( name ) (should be line 79).
Replace that line with: fullName = "/System/Library/Frameworks/{}.framework/{}".format(name,name)
After that, save the file and try to run Python Video Annotator again. It should open without issues.
Activity
MicBoucinha commentedon Mar 17, 2021
Hi,
After some investigation regarding the issue, it seems that there were some changes on how some libraries are handled in Big Sur.
This is a known issue and there is already a merged PR for python 3.9 here: python/cpython#22855
I assume that it should be available in the next point release of python 3.9 since that merge is after the release date of 3.9.2 (the current latest).
There might be additional unknown issues by using Python Video Annotator on Python 3.9.
I will leave this issue open and try to find an alternative workaround in the meantime.
MicBoucinha commentedon Mar 17, 2021
If you are at ease to change already installed python library files, there is an ugly workaround that works.
If you go to the folder mentioned in the error you get and edit the
ctypesloader.pyfile (should be something similar to:/Users/<your_user>/opt/anaconda3/envs/videoannotator/lib/python3.9/site-packages/OpenGL/platform/ctypesloader.pyand search for the following line:fullName = util.find_library( name )(should be line 79).Replace that line with:
fullName = "/System/Library/Frameworks/{}.framework/{}".format(name,name)After that, save the file and try to run Python Video Annotator again. It should open without issues.
That solution was found on StackOverflow here: https://stackoverflow.com/questions/63475461/unable-to-import-opengl-gl-in-python-on-macos
I will try to find a way to properly fix this issue instead of this workaround.
Please let me know if you were able to do these steps.