Closed janvda closed 4 years ago
Congratulations on being first user of the module on OSX, apparently :)
Problem is CDLL('libpulse.so.0')
, which tries to open .so file as it says, but I think OSX uses .dynlib files with probably some different versioning convention, so that filename just has to be different for OSX.
Iirc python ctypes had some wrapper to abstract these, will check if maybe it can be fixed without needing to learn much about lib names there.
Thanks for reporting.
Replaced that CDLL with p = CDLL(ctypes.util.find_library('libpulse') or 'libpulse.so.0')
in 19.10.0.
I think it should work if you have libpulse installed in a proper way for OSX.
Don't have macbook to test it, so let me know if it still won't work.
Maybe also check what's the full path to libpulse if that's the case, and maybe run something like strace -s16384 python3 -c 'import pulsectl' 2>&1 | grep libpulse
if you can (not sure if OSX has strace though), as that should probably show where python ctypes module and/or libdl is looking for it.
Thanks for the extreme fast resolution. The issue is indeed gone when installing version 19.10.0.
Jan.
I am getting below error on my macbook:
Note that pulseaudio is installed on my macbook when trying to import
pulsectl