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

pip install playsound no longer works #150

Open
Alexofhtek opened this issue Dec 6, 2023 · 16 comments · May be fixed by #149
Open

pip install playsound no longer works #150

Alexofhtek opened this issue Dec 6, 2023 · 16 comments · May be fixed by #149

Comments

@Alexofhtek
Copy link

× 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

@Alexofhtek
Copy link
Author

image

@taconi taconi linked a pull request Dec 6, 2023 that will close this issue
@lundstrj
Copy link

lundstrj commented Dec 8, 2023

I can confirm this to be a problem also on MacOS with pip 23.3.1 python 3.11

@MrBreakNFix
Copy link

Also on windows with latest pip & python

@KartikJain14
Copy link

Can confirm for Windows Python 3.11.7, pip 23.3.1 facing the same issue!

@KartikJain14
Copy link

pip install playsound@git+https://github.com/taconi/playsound
This command can be used temporarily for installing the package tho.

@5uperninj4
Copy link

pip install wheel
pip install playsound
this fixed the issue for me

@RasseTheBoy
Copy link

pip install wheel pip install playsound this fixed the issue for me

Can confirm. This worked for Python 3.11.7, pip 23.3.2

@nycki93
Copy link

nycki93 commented Jan 28, 2024

Not working for me on python 3.12.1, pip 23.3.2. I've tried installing wheel first.

@5uperninj4
Copy link

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
Also, you may come across times you want to use deprecated modules, and python 3.7 still works for a load of them

@Joshua14Jacob
Copy link

pip install wheel pip install playsound this fixed the issue for me

Can confirm, this worked on Python 3.11.1 and pip 24.0

@Mal-Raven
Copy link

pip install wheel pip install playsound this fixed the issue for me
Though I had to download the playsound package and install it manually, for python 3.10

@theharshpat
Copy link

pip install playsound@git+https://github.com/taconi/playsound This command can be used temporarily for installing the package tho.

Thanks @taconi @KartikJain14

@lehcode
Copy link

lehcode commented Feb 14, 2024

pip install wheel pip install playsound this fixed the issue for me

Worked for me after hours of pain!

RUN python3 -m pip install --upgrade pip && \
    python3 -m pip install setuptools wheel && \
    python3 -m pip install --upgrade setuptools wheel && \
    python3 -m venv .venv && . .venv/bin/activate && \
    pip install -r requirements.txt

@quantumtaoism
Copy link

pip install wheel pip install playsound this fixed the issue for me
Installed playsound-1.3.0 eventually with Python 3.11.8 via pip 24.0.
Thank you so much!

@ryd3v
Copy link

ryd3v commented Mar 3, 2024

  • pip install setuptools wheel
  • pip install --upgrade setuptools wheel
  • pip install playsound

worked for me on Fedora

@suraj-rixing
Copy link

pip install wheel

try this if anyone is working on VSCode, it worked for me and I had the same issue.

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

Successfully merging a pull request may close this issue.