Error installing pyo on Mac

703 views
Skip to first unread message

serge....@gmail.com

unread,
Mar 26, 2022, 11:06:29 AM3/26/22
to pyo-discuss
Hi Olivier,

I have tried to install pyo on a (remote!) friend's Mac, and it failed... :-(
It complains about 'portaudio.h not found':
====================================== 
   In file included from src/engine/ad_portaudio.c:21:
      include/ad_portaudio.h:25:10: fatal error: 'portaudio.h' file not found
      #include "portaudio.h"
               ^~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyo
  Running setup.py clean for pyo
Failed to build pyo
=======================================
Python version on this Mac is 3.10.3. Could it be the origin of the problem?

Thanks a lot in advance.
   Serge.

Olivier Bélanger

unread,
Mar 26, 2022, 4:17:03 PM3/26/22
to pyo-d...@googlegroups.com
Hi,

There are no wheels yet for 3.10, so pip tries to compile pyo, and he's missing dependencies.

If the python version does not matter too much, you can install python 3.9.

Olivier


--
You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyo-discuss/e73131a2-abd5-4181-a7a2-7a6e879ae04cn%40googlegroups.com.

serge....@gmail.com

unread,
Mar 26, 2022, 4:42:47 PM3/26/22
to pyo-discuss
Thanks! The python version doesn't matter much, but I am not a Mac expert, and not sure on
how to do this downgrade... Is this 'wheel' issue a python problem or a pyo problem?

Serge.

Olivier Bélanger

unread,
Mar 26, 2022, 4:51:39 PM3/26/22
to pyo-d...@googlegroups.com
Nothing to do to downgrade, you can have multiple python versions livide aside.

Next release of pyo will have wheels for 3.10, just not having enough time lately...

Olivier


serge....@gmail.com

unread,
Mar 26, 2022, 5:02:36 PM3/26/22
to pyo-discuss
Thanks again. I'll try to install python 3.9, with finger crossed... ;-)

Serge.

serge....@gmail.com

unread,
Mar 27, 2022, 11:04:52 AM3/27/22
to pyo-discuss
Hi Olivier,

   And thanks again. I have installed python 3.9 without problem. Now pyo and various packages
used in my program install correctly, BUT, the program stop with the following error message:
============================================================

Système Darwin

pyo version 1.0.4

['metaphoneur-py3.py']

serveur démarré

||PaMacCore (AUHAL)|| Error on line 1301: err='-66748', msg=Unknown Error

Portaudio error in Pa_OpenStream: Internal PortAudio error

Pyo error: From portaudio, Internal PortAudio error

Portaudio error in Pa_CloseStream (pa_deinit): PortAudio not initialized

Portaudio error in Pa_Terminate (pa_deinit): PortAudio not initialized

Pyo error:

Server not booted.

=============================================================
The lines in french are mine, the other ones come from python, I suppose.
The main problem is this:

||PaMacCore (AUHAL)|| Error on line 1301: err='-66748', msg=Unknown Error

which I don't understand... :-(

Thanks for any hint...
   Serge.

serge....@gmail.com

unread,
Mar 29, 2022, 2:06:22 PM3/29/22
to pyo-discuss
I have reinstalled Portaudio. Nothing changed... :-(

Olivier Bélanger

unread,
Mar 29, 2022, 8:18:27 PM3/29/22
to pyo-d...@googlegroups.com
Hi,

What kind of mac? Which OS version? Is there any audio input on this computer?

Olivier


serge....@gmail.com

unread,
Mar 29, 2022, 8:33:59 PM3/29/22
to pyo-discuss
Hi,
I don't know which kind of mac (but I'll know more tomorrow). The OS is Monterey 12.3, if I remember
correctly, and yes, there are audio inputs (my program using pyo used to run perfectly before my friend
decided to upgrade the system to Monterey >:o )
Serge.

serge....@gmail.com

unread,
Mar 30, 2022, 6:24:37 AM3/30/22
to pyo-discuss
Hi,

More detail on the mac:

iMac, model 19.2
Proc: Intel Core i3 4core
Speed: 3.6Ghz
Cache Level 2: 256KB
Cache Level 3: 6MB
Mem: 8GB, 2.4Mhz, DDR4
SMC: 2.47f3

Retina 4K, 21.5i
Radeon Pro 555X 2GB

Monterey 12.3

Serge.

Olivier Bélanger

unread,
Mar 30, 2022, 10:57:02 AM3/30/22
to pyo-d...@googlegroups.com
Never tried pyo on Monterey, will do as soon as I have a minute!

Olivier


serge....@gmail.com

unread,
Mar 30, 2022, 2:11:16 PM3/30/22
to pyo-discuss
Hi,

... and thanks! More information about Monterey:
Another friend of mine also has an iMac, with Monterey 12.2.1 and python 3.8,
and everything is ok with my program. So it might be a problem with python >= 3.9 and Monterey... :-\

Serge.

serge....@gmail.com

unread,
May 14, 2022, 11:36:46 AM5/14/22
to pyo-discuss
Hi all,
  
   In order to try to solve the above mysterious problem resulting in this message:

||PaMacCore (AUHAL)|| Error on line 1301: err='-66748', msg=Unknown Error

I have tried two things:

1) Change "serv=Server()" to "serv=Server(audio="coreaudio")" (I found this suggestion in a discussion
on this group, about one year ago).
Then the above message doesn't show up anymore, the program seems to run (the main window opens),
but there are some missing widgets (my program uses tkinter), and the menus are inactive. There is no further
error message in the terminal.

2) Try to have several versions of python available (with pyenv), and choose one of them. The result is:
* with python 3.9.0 or python 3.9.12: the above error message shows up, and the program stops withour opening
the main window.
* with python 3.8.10 or 3.8.13: the program protests that there is no tkinter available for this version of python!!!
On my machines (ubuntu 18 or 20), I have python 3.8.10 running perfectly with tkinter...

I confess I am completely lost... :-(

Thanks a lot in advance for any clue.
  Serge.
Reply all
Reply to author
Forward
0 new messages