I recently tried installing the face_recognition and playsound library for my new project but got an error in the process. Is it the issue with the new version of python 3.13
It would help if you told us how you installed them and what error you got.
i tried installing using pip and got this error
Collecting playsound
Using cached playsound-1.3.0.tar.gz (7.7 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
╰─> [31 lines of output]
Traceback (most recent call last):
File “/home/valuelesslegion45/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 389, in
main()
~~~~^^
File “/home/valuelesslegion45/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 373, in main
json_out[“return_val”] = hook(**hook_input[“kwargs”])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/valuelesslegion45/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 143, in get_requires_for_build_wheel
return hook(config_settings)
File “/tmp/pip-build-env-kppdow3e/overlay/lib/python3.13/site-packages/setuptools/build_meta.py”, line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/tmp/pip-build-env-kppdow3e/overlay/lib/python3.13/site-packages/setuptools/build_meta.py”, line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File “/tmp/pip-build-env-kppdow3e/overlay/lib/python3.13/site-packages/setuptools/build_meta.py”, line 512, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/tmp/pip-build-env-kppdow3e/overlay/lib/python3.13/site-packages/setuptools/build_meta.py”, line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File “”, line 6, in
File “/usr/lib/python3.13/inspect.py”, line 1258, in getsource
lines, lnum = getsourcelines(object)
~~~~~~~~~~~~~~^^^^^^^^
File “/usr/lib/python3.13/inspect.py”, line 1240, in getsourcelines
lines, lnum = findsource(object)
~~~~~~~~~~^^^^^^^^
File “/usr/lib/python3.13/inspect.py”, line 1080, in findsource
raise OSError(‘could not get source code’)
OSError: could not get source code
[end of output]
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.
pip
is deprecated, all hail pipx
Using pipx I also get an error, however, it is available via apt.
sudo apt install python3-playsound3