pysine
pysine copied to clipboard
portaudio.h error with Python 3.7 pip install
Get an error saying 'portaudio.h': No such file or directory when trying to pip install with Python 3.7
This problem doesn't occur with Python 3.6.
Our group develops curriculum for high school classrooms. We recommend pysine to dozens of schools. It has been wonderful (thank you so much for developing this!) and we'd like to continue recommending it. We're currently switching from teaching Python 2.7 to 3.7 so this fix would be really useful and help hundreds of students. There are unrelated issues that prevent us from using Python 3.6. Thanks again!
Install portaudio like described here fix the problem on mac for me if it is required to compile the c code for your python distro.
I have python 3.6.8 install on mac
Big Sur:
python3 -m pysine 880.0 3
||PaMacCore (AUHAL)|| Error on line 1316: err='-66748', msg=Unknown Error
ERROR:pysine:No audio output is available. Mocking audio stream to simulate one...
Calling sine({'duration': 3.0, 'frequency': 880.0})