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

PyAudio Installation Error #394

Closed
codihobia opened this issue Oct 30, 2020 · 1 comment
Closed

PyAudio Installation Error #394

codihobia opened this issue Oct 30, 2020 · 1 comment

Comments

@codihobia
Copy link

codihobia commented Oct 30, 2020

When I added pip{ install "pyaudio"} to my build.gradle and clicked on build in Android Studio, I got this:

Building wheels for collected packages: pyaudio
  Running setup.py bdist_wheel for pyaudio: started
  Running setup.py bdist_wheel for pyaudio: finished with status 'error'
  Complete output from command F:\Anaconda\python.exe -u -S -c "import setuptools, tokenize;__file__='C:\\Users\\Morgh\\AppData\\Local\\Temp\\pip-install-qg8g_jrc\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Morgh\AppData\Local\Temp\pip-wheel-t9c78l1c --python-tag py3:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.8
  copying src\pyaudio.py -> build\lib.win-amd64-3.8
  running build_ext
  building '_portaudio' extension
  error: CCompiler.compile: Chaquopy cannot compile native code
  
  ----------------------------------------
  Command "F:\Anaconda\python.exe -u -S -c "import setuptools, tokenize;__file__='C:\\Users\\Morgh\\AppData\\Local\\Temp\\pip-install-qg8g_jrc\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Morgh\AppData\Local\Temp\pip-wheel-t9c78l1c --python-tag py3" failed with error code 1 in C:\Users\Morgh\AppData\Local\Temp\pip-install-qg8g_jrc\pyaudio\
  error: CCompiler.compile: Chaquopy cannot compile native code

ERROR: Failed to install pyaudio from https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz.
For assistance, please raise an issue at https://github.com/chaquo/chaquopy/issues.
Failed to install pyaudio from https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz.

Chaquopy: Exit status 1

> Task :app:generateDebugPythonRequirements FAILED

So what does 'native code' mean and is it possible to get PyAudio to work with Chaquopy?

@mhsmith
Copy link
Member

mhsmith commented Oct 30, 2020

Unfortunately it's not currently possible: see #389.

@mhsmith mhsmith closed this as completed Oct 30, 2020
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