You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using PyAudio, but for it to work correctly, it needs 'portaudio' installed in the system via brew install.
This makes the application I am developing not user-friendly because the user has to perform a number of actions:
Install brew
Execute the command brew install portaudio
I would like this to work out of the box.
🤖 How I build the application:
flet build macos
In requirements.txt: PyAudio==0.2.13
I use Packages to create the installer. In it, there is a post-install script, but as far as I understand, it is also not possible to install portaudio within this script.
❔Question:
Are there any ways to solve this problem and install 'portaudio' automatically?
Code sample
No response
Error message
ERROR:root:Exception handled while starting app session: dlopen(/Users/dkzkv/Library/Caches/aseed v0.1.31 a-0.1.31-1/app/__pypackages__/pyaudio/_portaudio.cpython-311-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/portaudio/lib/libportaudio.2.dylib
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
🫠What is the problem?
I am using PyAudio, but for it to work correctly, it needs 'portaudio' installed in the system via brew install.
This makes the application I am developing not user-friendly because the user has to perform a number of actions:
I would like this to work out of the box.
🤖 How I build the application:
flet build macos
In requirements.txt:
PyAudio==0.2.13
❔Question:
Are there any ways to solve this problem and install 'portaudio' automatically?
Code sample
No response
Error message
ERROR:root:Exception handled while starting app session: dlopen(/Users/dkzkv/Library/Caches/aseed v0.1.31 a-0.1.31-1/app/__pypackages__/pyaudio/_portaudio.cpython-311-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/portaudio/lib/libportaudio.2.dylib
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions