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

wheel install failed under macOS with python3.9 #57

Open
ghost opened this issue Oct 4, 2021 · 2 comments
Open

wheel install failed under macOS with python3.9 #57

ghost opened this issue Oct 4, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 4, 2021

Hi,
thank you very much for this very simple but useful tool. It's one of the dependencies of my own tool (www.sppas.org) to play audio files. Unfortunalely, I'm getting this error - that I didn't had before, when I'm trying to install it on MacOS:

/usr/local/opt/python@3.9/bin/python3.9 -m pip install simpleaudio --no-warn-script-location
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Collecting simpleaudio
Using cached simpleaudio-1.0.4.tar.gz (2.0 MB)
Building wheels for collected packages: simpleaudio
Building wheel for simpleaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p/rtgtmmkn1ygd1tf2h8pfks9x_v39z/T/pip-install-wc2h302x/simpleaudio_5a17094cfa4f4c5293d79cfc5c38b9ce/setup.py'"'"'; file='"'"'/private/var/folders/p/rtgtmmkn1ygd1tf2h8pfks9x_v39z/T/pip-install-wc2h302x/simpleaudio_5a17094cfa4f4c5293d79cfc5c38b9ce/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 /private/var/folders/p/rtgtmmkn1ygd1tf2h8pfks9x_v39z/T/pip-wheel-0fie6zp9
cwd: /private/var/folders/p/rtgtmmkn1ygd1tf2h8pfks9x_v39z/T/pip-install-wc2h302x/simpleaudio_5a17094cfa4f4c5293d79cfc5c38b9ce/
Complete output (35 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-3.9
creating build/lib.macosx-11-x86_64-3.9/simpleaudio
copying simpleaudio/init.py -> build/lib.macosx-11-x86_64-3.9/simpleaudio
copying simpleaudio/shiny.py -> build/lib.macosx-11-x86_64-3.9/simpleaudio
copying simpleaudio/functionchecks.py -> build/lib.macosx-11-x86_64-3.9/simpleaudio
creating build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/c.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/e.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/g.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/left_right.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/notes_2_16_44.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
running build_ext
building 'simpleaudio._simpleaudio' extension
creating build/temp.macosx-11-x86_64-3.9
creating build/temp.macosx-11-x86_64-3.9/c_src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -DDEBUG=0 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c c_src/posix_mutex.c -o build/temp.macosx-11-x86_64-3.9/c_src/posix_mutex.o -mmacosx-version-min=10.6
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -DDEBUG=0 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c c_src/simpleaudio.c -o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio.o -mmacosx-version-min=10.6
c_src/simpleaudio.c:164:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
PyEval_InitThreads();
^
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/ceval.h:130:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -DDEBUG=0 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c c_src/simpleaudio_mac.c -o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio_mac.o -mmacosx-version-min=10.6
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk build/temp.macosx-11-x86_64-3.9/c_src/posix_mutex.o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio.o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio_mac.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-11-x86_64-3.9/simpleaudio/_simpleaudio.cpython-39-darwin.so -framework AudioToolbox
clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
error: command '/usr/bin/clang' failed with exit code 1

ERROR: Failed building wheel for simpleaudio
Running setup.py clean for simpleaudio
Failed to build simpleaudio
Installing collected packages: simpleaudio
Running setup.py install for simpleaudio ... error
ERROR: Command errored out with exit status 1:

@eggplants
Copy link

$ /usr/local/opt/python@3.9/bin/python3.9 -m pip install simpleaudio --no-warn-script-location
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at [Homebrew/homebrew-core#76621](https://github.com/Homebrew/homebrew-core/issues/76621)
Collecting simpleaudio
Using cached simpleaudio-1.0.4.tar.gz (2.0 MB)
Building wheels for collected packages: simpleaudio
Building wheel for simpleaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_p/rtgtmmkn1ygd1tf2h8pfks9x_v39z_/T/pip-install-wc2h302x/simpleaudio_5a17094cfa4f4c5293d79cfc5c38b9ce/setup.py'"'"'; **file**='"'"'/private/var/folders/_p/rtgtmmkn1ygd1tf2h8pfks9x_v39z_/T/pip-install-wc2h302x/simpleaudio_5a17094cfa4f4c5293d79cfc5c38b9ce/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 /private/var/folders/_p/rtgtmmkn1ygd1tf2h8pfks9x_v39z_/T/pip-wheel-0fie6zp9
cwd: /private/var/folders/_p/rtgtmmkn1ygd1tf2h8pfks9x_v39z_/T/pip-install-wc2h302x/simpleaudio_5a17094cfa4f4c5293d79cfc5c38b9ce/
Complete output (35 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-3.9
creating build/lib.macosx-11-x86_64-3.9/simpleaudio
copying simpleaudio/**init**.py -> build/lib.macosx-11-x86_64-3.9/simpleaudio
copying simpleaudio/shiny.py -> build/lib.macosx-11-x86_64-3.9/simpleaudio
copying simpleaudio/functionchecks.py -> build/lib.macosx-11-x86_64-3.9/simpleaudio
creating build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/c.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/e.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/g.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/left_right.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
copying simpleaudio/test_audio/notes_2_16_44.wav -> build/lib.macosx-11-x86_64-3.9/simpleaudio/test_audio
running build_ext
building 'simpleaudio._simpleaudio' extension
creating build/temp.macosx-11-x86_64-3.9
creating build/temp.macosx-11-x86_64-3.9/c_src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -DDEBUG=0 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c c_src/posix_mutex.c -o build/temp.macosx-11-x86_64-3.9/c_src/posix_mutex.o -mmacosx-version-min=10.6
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -DDEBUG=0 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c c_src/simpleaudio.c -o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio.o -mmacosx-version-min=10.6
c_src/simpleaudio.c:164:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
PyEval_InitThreads();
^
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/ceval.h:130:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) **attribute**((**deprecated**))
^
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -DDEBUG=0 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c c_src/simpleaudio_mac.c -o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio_mac.o -mmacosx-version-min=10.6
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk build/temp.macosx-11-x86_64-3.9/c_src/posix_mutex.o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio.o build/temp.macosx-11-x86_64-3.9/c_src/simpleaudio_mac.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-11-x86_64-3.9/simpleaudio/_simpleaudio.cpython-39-darwin.so -framework AudioToolbox
clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
error: command '/usr/bin/clang' failed with exit code 1
ERROR: Failed building wheel for simpleaudio Running setup.py clean for simpleaudio Failed to build simpleaudio Installing collected packages: simpleaudio Running setup.py install for simpleaudio ... error ERROR: Command errored out with exit status 1:

@eggplants
Copy link

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

1 participant