My first question goes here. Finding specific examples on PyOBJC is a challenge to say the least, so I thought I might try just asking.. My python script:
from MediaLibrary import *
mediaLibrary = MLMediaLibrary.alloc().initWithOptions_(None)
Throws this error:
[MLMediaLibraryImpl connectToService]_block_invoke connection interrupted 2019-10-31 17:33:56.384 Python[77412:20497679] MLMediaLibrary error obtaining remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.MediaLibraryService" UserInfo={NSDebugDescription=connection to service named com.apple.MediaLibraryService}
the mediaLibrary does get instantiated but is not able to fin any mediasources.
I have seen someone have problems with this in Xcode and Objective-C, saying it might be a sandboxing or entitlements issue, but in Xcode on my Mac this runs fine without any of those.
any ideas? help?