python-sounddevice icon indicating copy to clipboard operation
python-sounddevice copied to clipboard

OSERROR portaudio library not found

Open ianovert opened this issue 1 year ago • 1 comments

Hi my name is ian, and I’ve been trying to compile my kivy app into apk but i keep getting an error on the logcat that the sounddevice.py line 71 the portaudio library is not found. I checked the files that were copied during the compiling process and i noted that _sounddevice_data folder was missing when the sounddevice package was being installed by the requirements.txt on my buildozer.spec file. I’ve tried copying the folder to my google colab then compiling the app and still the error appears on my logcat, how can i install the right sounddevice package that will install the _sounddevice_data folder that contains the portaudio64bit.dll file??

ianovert avatar Jun 03 '24 08:06 ianovert

compile my kivy app into apk

I have never done that, no idea if this is supposed to work.

With "apk", do you mean a package for Android?

_sounddevice_data folder was missing when the sounddevice package was being installed by the requirements.txt

This folder is only created on Windows and macOS:

https://github.com/spatialaudio/python-sounddevice/blob/cfea2b6743224eb5e91b37aa80aedd3d8b0e3931/setup.py#L22-L32

If you are trying to create a package for Android, this will not be created.

I don't know if the PortAudio library is even supported on Android.

folder that contains the portaudio64bit.dll file

The .dll file won't help on Android, right?

mgeier avatar Aug 11 '24 13:08 mgeier