pysine icon indicating copy to clipboard operation
pysine copied to clipboard

portaudio.h error with Python 3.7 pip install

Open kyle-uteach opened this issue 5 years ago • 2 comments
trafficstars

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!

kyle-uteach avatar Dec 03 '19 22:12 kyle-uteach

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

tonka3000 avatar Dec 09 '19 20:12 tonka3000

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})


neilyoung avatar Apr 10 '21 18:04 neilyoung