-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: ctypes.util.find_library() did not manage to locate a library called 'CoreAudio' #126
Comments
What version of macOS and Python are your running? |
macOS BigSur Version 11.2.1 |
Seeing the same issue with the same OS version and python 3.8.6:
|
I have solved it temporarily by following these steps
I have temporarily avoided the error by adding this code in .../lib/python3.8/site-packages/cffi/api.py
Hope it helps |
Does this mean it's a CFFI issue? Or is this a problem in SoundCard? |
I have the same issue. @andresmntr's solution worked for me. macOS 11.2.1, Python 3.8.5. |
I have the same issue, on Monterey, over six months later :( |
Would anyone with access to a Monterey system like to draft a pull request that works around this issue? |
There was apparently a long list of Python items that were broken by Mac OS Big Sur, including this issue. See https://bugs.python.org/issue41179 and https://bugs.python.org/issue41100. The "mega-issue" was recently closed with fixes in Python 3.10. I just installed Python 3.10.9 on my Big Sur MacBook Air, and ctypes.util.find_library() now works properly. Unfortunately, SoundCard on Mac still has issues. microphone.record() returns a zero-filled numpy array. Haven't checked yet if there is already an issue about this opened here. EDIT: As best as I can tell, in _Recorder, after return from _au.AudioUnitRender(), the code always runs through the "special case if output is silence", which simply returns a zero-filled numpy array. That's as far as I could go with this. Thanks - Bruce |
That's very good to hear! Since I don't have access to a modern Mac, one of you will have to step in with a solution to the silence issue. I have no way of debugging this, unfortunately. |
Getting this error:
When trying to import soundcard into my project.
OS: macOS
Any idea on how I can solve that?
The text was updated successfully, but these errors were encountered: