py-simple-audio
py-simple-audio copied to clipboard
No support for python>=3.9?
I can't install simpleaudio with python 3.9 or greater, will support be added?
I get the following error msg (build tools are installed):
Building wheel for simpleaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\perry\\AppData\\Local\\Temp\\pip-install-g73q1qys\\simpleaudio_3160829381ee43eab
d16313e855b8b21\\setup.py'"'"'; __file__='"'"'C:\\Users\\perry\\AppData\\Local\\Temp\\pip-install-g73q1qys\\simpleaudio_3160829381ee43eabd16313e855b8b21\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)
(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"
'))' bdist_wheel -d 'C:\Users\perry\AppData\Local\Temp\pip-wheel-35lt4gyc'
cwd: C:\Users\perry\AppData\Local\Temp\pip-install-g73q1qys\simpleaudio_3160829381ee43eabd16313e855b8b21\
Complete output (18 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\simpleaudio
copying simpleaudio\__init__.py -> build\lib.win-amd64-3.10\simpleaudio
copying simpleaudio\shiny.py -> build\lib.win-amd64-3.10\simpleaudio
copying simpleaudio\functionchecks.py -> build\lib.win-amd64-3.10\simpleaudio
creating build\lib.win-amd64-3.10\simpleaudio\test_audio
copying simpleaudio\test_audio\c.wav -> build\lib.win-amd64-3.10\simpleaudio\test_audio
copying simpleaudio\test_audio\e.wav -> build\lib.win-amd64-3.10\simpleaudio\test_audio
copying simpleaudio\test_audio\g.wav -> build\lib.win-amd64-3.10\simpleaudio\test_audio
copying simpleaudio\test_audio\left_right.wav -> build\lib.win-amd64-3.10\simpleaudio\test_audio
copying simpleaudio\test_audio\notes_2_16_44.wav -> build\lib.win-amd64-3.10\simpleaudio\test_audio
running build_ext
building 'simpleaudio._simpleaudio' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
I am also python3.9, I just encountered this problem, but I have solved it.
You can download this repo, unzip it, and type on the path of the repo.
python setup.py install
Remember you have to install C++ v14.0 or greater first
I'm running it on python 3.10.11 (linux) so it's not simply a python version problem.
Try to setup libasound2-dev:
apt-get install libasound2-dev