Skip to content

Cannot start-video-annotator #50

Description

@JiHyunKu

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?

Activity

  1. MicBoucinha commented on Mar 17, 2021

    @MicBoucinha
    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.

  2. MicBoucinha commented on Mar 17, 2021

    @MicBoucinha
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions