Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start-video-annotator #50

Open
JiHyunKu opened this issue Mar 7, 2021 · 2 comments
Open

Cannot start-video-annotator #50

JiHyunKu opened this issue Mar 7, 2021 · 2 comments

Comments

@JiHyunKu
Copy link

JiHyunKu commented Mar 7, 2021

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?

@MicBoucinha
Copy link
Collaborator

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
Copy link
Collaborator

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants