Skip to content
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

MacOS BigSur: ||PaMacCore (AUHAL)|| Error on line 1316: err='-66748', msg=Unknown Error #299

Open
sharonlev opened this issue Dec 22, 2020 · 11 comments

Comments

@sharonlev
Copy link

When attempting to run sample code from (https://python-sounddevice.readthedocs.io/en/0.3.7/_downloads/play_file.py) on a macOS Big Sur (clean venv based on py3.7), I am getting the following:

||PaMacCore (AUHAL)|| Error on line 1316: err='-66748', msg=Unknown Error
PortAudioError: Error opening OutputStream: Internal PortAudio error [PaErrorCode -9986]

any idea what needs to be re-build to support the new OS?

@mgeier
Copy link
Member

mgeier commented Dec 25, 2020

Sorry, I have no idea what causes this error and how it could be fixed, but for the record, the same problem seems to appear when using PyAudio (which uses the same underlying library PortAudio), see https://stackoverflow.com/questions/65432130/pyaudio-oserror-errno-9986-internal-portaudio-error.

You should probably report this issue to the PortAudio project, see http://portaudio.com/contacts.html.

@zappos23
Copy link

Hi, I tried to reinstall and it's working now.
brew uninstall portaudio
brew install portaudio --HEAD

@sharonlev
Copy link
Author

Thanks for the HEADs up ;)

brew install portaudio --HEAD

Looks like that did the trick here (regular install did not resolve yet)

@mgeier
Copy link
Member

mgeier commented May 30, 2021

See also PortAudio/portaudio#468 and PortAudio/portaudio#470.

This hopefully goes away once the new version of the .dylib is used, see also #333.

@mgeier
Copy link
Member

mgeier commented Jun 7, 2021

I've just created a new .dylib in case somebody wants to test it: spatialaudio/portaudio-binaries#8.

@mgeier
Copy link
Member

mgeier commented Oct 16, 2021

If anyone still has this problem (especially on an M1 Mac), can you please try the .dylib from spatialaudio/portaudio-binaries#10 and report if it works?

@vrslev
Copy link
Contributor

vrslev commented Jan 28, 2022

@mgeier I have M1 Mac and everything works fine without your custom built. I use PortAudio from brew (ARM version).

@onehundredfeet
Copy link

I am getting this on my Mac M1:

||PaMacCore (AUHAL)|| AUHAL component not found.

I have used home-brew to reinstall, but am not using head ATM

@stefansjs
Copy link

Can someone help me with this? I'm installing portaudio with conda. I don't really know how packages are published in brew or conda. Is there a nightly conda package that I could try to use, similar to that --HEAD command for brew?

@mgeier
Copy link
Member

mgeier commented Oct 13, 2023

@stefansjs and @onehundredfeet

You can try to uninstall portaudio with conda and brew and then install sounddevice with pip.

I'm currently updating the installation docs here: #495.

Is there a nightly conda package

No.

If you really want to try the latest development version (which I think you don't need to solve the problem at hand), you can install it with pip as well: https://python-sounddevice.readthedocs.io/en/0.4.6/CONTRIBUTING.html#development-installation

However, the PortAudio packages from conda and brew will interfere with that just a badly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants