Skip to content

mac error on launching example #148

Open
@jdauthre

Description

@jdauthre

I am using mojave on my mac and have installed libmpv via homebrew and python-mpv via pip3. on launching a simple example via idle:
import mpv
player = mpv.MPV(ytdl=True)
player.play('/Documents/NHK.mp4')
player.wait_for_playback()

I get an error:
Traceback (most recent call last):
File "/Users/jdauthre/Documents/python/mpvmini.py", line 1, in
import mpv
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/mpv.py", line 52, in
backend = CDLL(sofile)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 373, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/usr/local/lib/libmpv.dylib, 6): Symbol not found: _$sSo13NSWindowLevela6AppKit01_cdD23NumericRawRepresentableACMc
Referenced from: /usr/local/lib/libmpv.dylib
Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftAppKit.dylib
in /usr/local/lib/libmpv.dylib

What do I need to do to get it to run?
Thanks in advance

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