Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Import error on MacOS #37

@joejacobs

Description

@joejacobs

Importing libvlc doesn't work on MacOS. When I try to import VLC (using VLC 3.0 RC9) I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/user/miniconda/envs/blah/lib/python3.6/site-packages/vlc.py", line 198, in <module>
    dll, plugin_path  = find_lib()
  File "/Users/user/miniconda/envs/blah/lib/python3.6/site-packages/vlc.py", line 183, in find_lib
    dll = ctypes.CDLL(p)
  File "/Users/user/miniconda/envs/blah/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlc.dylib, 6): Library not loaded: @rpath/libvlccore.dylib
  Referenced from: /Applications/VLC.app/Contents/MacOS/lib/libvlc.dylib
  Reason: image not found

It looks like libvlccore.dylib needs to be imported first before importing libvlc.dylib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions