Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSERROR portaudio library not found #540

Open
ianovert opened this issue Jun 3, 2024 · 1 comment
Open

OSERROR portaudio library not found #540

ianovert opened this issue Jun 3, 2024 · 1 comment

Comments

@ianovert
Copy link

ianovert commented Jun 3, 2024

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??

@mgeier
Copy link
Member

mgeier commented Aug 11, 2024

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:

if system == 'Darwin':
libname = 'libportaudio.dylib'
elif system == 'Windows':
libname = 'libportaudio' + architecture0 + '.dll'
else:
libname = None
if libname and os.path.isdir('_sounddevice_data/portaudio-binaries'):
packages = ['_sounddevice_data']
package_data = {'_sounddevice_data': ['portaudio-binaries/' + libname,
'portaudio-binaries/README.md']}

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants