#๐Ÿ”’ pyaudio installation error

27 messages ยท Page 1 of 1 (latest)

cyan acorn
#

Building wheel for pyaudio (pyproject.toml) did not run successfully.
โ”‚ exit code: 1
โ•ฐโ”€> [21 lines of output]
WARNING:root:Warning: VCPKG_PATH envrionment variable not set.
INFO:root:running bdist_wheel
INFO:root:running build
INFO:root:running build_py
INFO:root:creating build
INFO:root:creating build\lib.win-amd64-cpython-37
INFO:root:creating build\lib.win-amd64-cpython-37\pyaudio
INFO:root:copying src\pyaudio_init_.py -> build\lib.win-amd64-cpython-37\pyaudio
INFO:root:running build_ext
INFO:root:building 'pyaudio._portaudio' extension
INFO:root:creating build\temp.win-amd64-cpython-37
INFO:root:creating build\temp.win-amd64-cpython-37\Release
INFO:root:creating build\temp.win-amd64-cpython-37\Release\src
INFO:root:creating build\temp.win-amd64-cpython-37\Release\src\pyaudio
INFO:root:"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 "-

steel ploverBOT
#

@cyan acorn

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

cyan acorn
#

part of the same error:

#

IC:\Users\Andrew & Mindy Chipp\AppData\Local\Programs\Python\Python37\include" "-IC:\Users\Andrew & Mindy Chipp\AppData\Local\Programs\Python\Python37\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /Tcsrc/pyaudio/device_api.c /Fobuild\temp.win-amd64-cpython-37\Release\src/pyaudio/device_api.obj /MT
cl : Command line warning D9025 : overriding '/MD' with '/MT'
device_api.c
C:\Users\Andrew & Mindy Chipp\AppData\Local\Programs\Python\Python37\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
C:\Users\Andrew & Mindy Chipp\AppData\Local\Programs\Python\Python37\include\pyconfig.h(117): note: 'MS_WIN64' previously declared on the command line
src/pyaudio/device_api.c(9): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects

grave vale
#
No such file or directory
      error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe'
#

Maybe reinstall your build tool

cyan acorn
#

? uh ok

cyan acorn
grave vale
cyan acorn
#

idk

grave vale
#

It looks like you got it from Visual Studio

cyan acorn
#

yeah

#

idk where it is

#

to getr build tools

grave vale
#

Open Visual Studio Installer

cyan acorn
#

yep

grave vale
cyan acorn
#

just reinstalled those, comes up with this: error: subprocess-exited-with-error

ร— Building wheel for pyaudio (pyproject.toml) did not run successfully.
โ”‚ exit code: 1
โ•ฐโ”€> [21 lines of output]
WARNING:root:Warning: VCPKG_PATH envrionment variable not set.
INFO:root:running bdist_wheel
INFO:root:running build
INFO:root:running build_py
INFO:root:creating build
INFO:root:creating build\lib.win-amd64-cpython-37
INFO:root:creating build\lib.win-amd64-cpython-37\pyaudio
INFO:root:copying src\pyaudio_init_.py -> build\lib.win-amd64-cpython-37\pyaudio
INFO:root:running build_ext
INFO:root:building 'pyaudio._portaudio' extension
INFO:root:creating build\temp.win-amd64-cpython-37
INFO:root:creating build\temp.win-amd64-cpython-37\Release
INFO:root:creating build\temp.win-amd64-cpython-37\Release\src
INFO:root:creating build\temp.win-amd64-cpython-37\Release\src\pyaudio
INFO:root:"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe"

#

/c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 "-Ic:\users\andrew & mindy chipp\appdata\local\programs\python\python37\include" "-Ic:\users\andrew & mindy chipp\appdata\local\programs\python\python37\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /Tcsrc/pyaudio/device_api.c /Fobuild\temp.win-amd64-cpython-37\Release\src/pyaudio/device_api.obj /MT
cl : Command line warning D9025 : overriding '/MD' with '/MT'
device_api.c
c:\users\andrew & mindy chipp\appdata\local\programs\python\python37\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
c:\users\andrew & mindy chipp\appdata\local\programs\python\python37\include\pyconfig.h(117): note: 'MS_WIN64' previously declared on the command line
src/pyaudio/device_api.c(9): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects

#

i was using pip install pyaudio

#

so idkk

grave vale
#

but did you reinstall the build tools?

cyan acorn
#

yeah

grave vale
#

hmm

#

Can you go to this folder and check if cl.exe definitely doesn't exist? C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64

steel ploverBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.