-
Notifications
You must be signed in to change notification settings - Fork 114
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
pip install playsound no longer works #150
Comments
I can confirm this to be a problem also on MacOS with pip 23.3.1 python 3.11 |
Also on windows with latest pip & python |
Can confirm for Windows Python 3.11.7, pip 23.3.1 facing the same issue! |
|
|
Can confirm. This worked for Python 3.11.7, pip 23.3.2 |
Not working for me on python 3.12.1, pip 23.3.2. I've tried installing wheel first. |
Try using python 3.7, many modules don't have support for the newer versions of python |
Can confirm, this worked on Python 3.11.1 and pip 24.0 |
|
Thanks @taconi @KartikJain14 |
Worked for me after hours of pain!
|
|
worked for me on Fedora |
try this if anyone is working on VSCode, it worked for me and I had the same issue. |
This worked for me |
This one Worked for me in version 3.12...Thank you!!! |
It works on python 3.12 ,windows, thanks so much! |
Hoping this issue gets a real fix (installing wheel beforehand is a workaround, not a fix). I'm currently working with some applications that happen to require playsound, which cannot be installed with certain tools (eg. poetry, pipx) as they create virtual environments and will not install the wheel package beforehand to accommodate a nonstandard installation issue. The following steps must work: python3 -m venv psvenv
. psvenv/bin/activate
pip install playsound If these steps don't succeed (ie. if playsound can't be installed in a newly created virtualenv), then apps that depend on playsound will fail to install when being handled with common tools that expect standard behavior. |
Hm, it appears a fix is already submitted for PR. It just needs to be merged. @TaylorSMarks Or alternatively: master...taconi:playsound:master |
Can confirm, the following Just Works: python3 -m venv psvenv
. psvenv/bin/activate
pip install git+ssh://[email protected]/taconi/playsound.git |
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "C:\Users\alexo\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\alexo\AppData\Local\Programs\Python\Python312\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\alexo\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alexo\AppData\Local\Temp\pip-build-env-7t7l9v70\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alexo\AppData\Local\Temp\pip-build-env-7t7l9v70\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\alexo\AppData\Local\Temp\pip-build-env-7t7l9v70\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\alexo\AppData\Local\Temp\pip-build-env-7t7l9v70\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 6, in
File "C:\Users\alexo\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 1282, in getsource
lines, lnum = getsourcelines(object)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alexo\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 1264, in getsourcelines
lines, lnum = findsource(object)
^^^^^^^^^^^^^^^^^^
File "C:\Users\alexo\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 1093, 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.
Here is what i have tried:
pip install --upgrade setuptools
pip install --upgrade wheel
python --m pip install playsound
python.exe -m pip install --upgrade pip
Also this is not an error with PIP as statedd above in the bolded text
The text was updated successfully, but these errors were encountered: