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

No support for python>=3.9? #63

Open
MaxWolf-01 opened this issue Jun 26, 2022 · 3 comments
Open

No support for python>=3.9? #63

MaxWolf-01 opened this issue Jun 26, 2022 · 3 comments

Comments

@MaxWolf-01
Copy link

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/
@junjielyu13
Copy link

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

@atisharma
Copy link

I'm running it on python 3.10.11 (linux) so it's not simply a python version problem.

@tzabzlat
Copy link

Try to setup libasound2-dev:

apt-get install libasound2-dev

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

4 participants