Uthsob

Error while installing PyAudio!

Dec 3rd, 2020
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.81 KB | None | 0 0
  1. Collecting pyaudio
  2.   Using cached PyAudio-0.2.11.tar.gz (37 kB)
  3. Building wheels for collected packages: pyaudio
  4.   Building wheel for pyaudio (setup.py) ... error
  5.   ERROR: Command errored out with exit status 1:
  6.    command: /home/uthsob/Templates/Python/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tmonwik6/pyaudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tmonwik6/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 /tmp/pip-wheel-p_bz5yjg
  7.        cwd: /tmp/pip-install-tmonwik6/pyaudio/
  8.   Complete output (16 lines):
  9.   running bdist_wheel
  10.   running build
  11.   running build_py
  12.   creating build
  13.   creating build/lib.linux-x86_64-3.8
  14.   copying src/pyaudio.py -> build/lib.linux-x86_64-3.8
  15.   running build_ext
  16.   building '_portaudio' extension
  17.   creating build/temp.linux-x86_64-3.8
  18.   creating build/temp.linux-x86_64-3.8/src
  19.   x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/uthsob/Templates/Python/venv/include -I/usr/include/python3.8 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.8/src/_portaudiomodule.o
  20.   src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory
  21.      29 | #include "portaudio.h"
  22.         |          ^~~~~~~~~~~~~
  23.   compilation terminated.
  24.   error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  25.   ----------------------------------------
  26.   ERROR: Failed building wheel for pyaudio
  27.   Running setup.py clean for pyaudio
  28. Failed to build pyaudio
  29. DEPRECATION: Could not build wheels for pyaudio which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
  30. Installing collected packages: pyaudio
  31.     Running setup.py install for pyaudio ... error
  32.     ERROR: Command errored out with exit status 1:
  33.      command: /home/uthsob/Templates/Python/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tmonwik6/pyaudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tmonwik6/pyaudio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-a9w782te/install-record.txt --single-version-externally-managed --compile --install-headers /home/uthsob/Templates/Python/venv/include/site/python3.8/pyaudio
  34.          cwd: /tmp/pip-install-tmonwik6/pyaudio/
  35.     Complete output (16 lines):
  36.     running install
  37.     running build
  38.     running build_py
  39.     creating build
  40.     creating build/lib.linux-x86_64-3.8
  41.     copying src/pyaudio.py -> build/lib.linux-x86_64-3.8
  42.     running build_ext
  43.     building '_portaudio' extension
  44.     creating build/temp.linux-x86_64-3.8
  45.     creating build/temp.linux-x86_64-3.8/src
  46.     x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/uthsob/Templates/Python/venv/include -I/usr/include/python3.8 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.8/src/_portaudiomodule.o
  47.     src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory
  48.        29 | #include "portaudio.h"
  49.           |          ^~~~~~~~~~~~~
  50.     compilation terminated.
  51.     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  52.     ----------------------------------------
  53. ERROR: Command errored out with exit status 1: /home/uthsob/Templates/Python/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tmonwik6/pyaudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tmonwik6/pyaudio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-a9w782te/install-record.txt --single-version-externally-managed --compile --install-headers /home/uthsob/Templates/Python/venv/include/site/python3.8/pyaudio Check the logs for full command output.
  54. WARNING: You are using pip version 20.2; however, version 20.3 is available.
  55. You should consider upgrading via the '/home/uthsob/Templates/Python/venv/bin/python -m pip install --upgrade pip' command.
Add Comment
Please, Sign In to add comment