py-simple-audio
py-simple-audio copied to clipboard
Installation of simpleaudio fails for Python 3.10.6
Collecting simpleaudio
Using cached simpleaudio-1.0.4.tar.gz (2.0 MB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for simpleaudio, since package 'wheel' is not installed.
Installing collected packages: simpleaudio
Running setup.py install for simpleaudio ... error
error: subprocess-exited-with-error
× Running setup.py install for simpleaudio did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
running install
D:\SOFTWARE\Python3.10.6\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\simpleaudio
copying simpleaudio\__init__.py -> build\lib.win-amd64-cpython-310\simpleaudio
copying simpleaudio\shiny.py -> build\lib.win-amd64-cpython-310\simpleaudio
copying simpleaudio\functionchecks.py -> build\lib.win-amd64-cpython-310\simpleaudio
creating build\lib.win-amd64-cpython-310\simpleaudio\test_audio
copying simpleaudio\test_audio\c.wav -> build\lib.win-amd64-cpython-310\simpleaudio\test_audio
copying simpleaudio\test_audio\e.wav -> build\lib.win-amd64-cpython-310\simpleaudio\test_audio
copying simpleaudio\test_audio\g.wav -> build\lib.win-amd64-cpython-310\simpleaudio\test_audio
copying simpleaudio\test_audio\left_right.wav -> build\lib.win-amd64-cpython-310\simpleaudio\test_audio
copying simpleaudio\test_audio\notes_2_16_44.wav -> build\lib.win-amd64-cpython-310\simpleaudio\test_audio
running build_ext
building 'simpleaudio._simpleaudio' extension
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\c_src
"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DDEBUG=0 -ID:\SOFTWARE\Python3.10.6\include -ID:\SOFTWARE\Python3.10.6\Include "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcc_src/simpleaudio.c /Fobuild\temp.win-amd64-cpython-310\Release\c_src/simpleaudio.obj
simpleaudio.c
d:\software\python3.10.6\include\pyconfig.h(200): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "basetsd.h": No such file or directory
error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\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: legacy-install-failure
× Encountered error while trying to install package.
╰─> simpleaudio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I just installed Microsoft Visual C++ 14.0 and restarted my pc. It's missing a file called basetsd.h, is there a way to download that file and put it where it belongs manually?
I also get this problem. Any solutions?
I also can't download using pip, but I have solved it. You can try to download this repo and then
python setup.py install
in the path of the repo, I solved it like this
Hope you have solved the problem