pyaudio
pyaudio copied to clipboard
Py 12 support?
Works great on 11 but are you doing anything to port to 12 or is there a workaround?
(.venv) PS C:\Users\DanielRoy\Documents\GitHub\ProjectProdigi\3.12> pip install pyaudio Collecting pyaudio Using cached PyAudio-0.2.13.tar.gz (46 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
Traceback (most recent call last):
File "c:\Users\DanielRoy\Documents\GitHub\ProjectProdigi\3.12.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "c:\Users\DanielRoy\Documents\GitHub\ProjectProdigi\3.12.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\DanielRoy\Documents\GitHub\ProjectProdigi\3.12.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
^^^^^^^^^^^^^^^^
File "c:\Users\DanielRoy\Documents\GitHub\ProjectProdigi\3.12.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\importlib_init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Revert 40577822c305041ce424935268022b21f968cc93
The issue is caused by the old version of setuptools that pyaudio restricts itself to.
Remove the restriction and the mac armv8 version builds (python3.7 and setuptools==68.0.0) so it may no longer be necessary. I don't have access to an x86_64 mac though.
I pulled last changes from upstream, and there seems to be a commit related to Python 3.12.
And 3.12 wheels are out too! \o/ https://pypi.org/project/PyAudio/#files
I believe that Python 3.12 is fixed but Python 3.13 on Windows is not.
- #9
Wheels available at https://pypi.org/project/PyAudio.