Python Forum
ERROR WHILE INSTALLING PLAYSOUND MODULE
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ERROR WHILE INSTALLING PLAYSOUND MODULE
#1
Hello Everyone,

I hope you all are good.

I am new to python world and facing some issue while installing play sound.Error below :

PS C:\Users\Dell\3D Objects> pip install playsound
Defaulting to user installation because normal site-packages is not writeable
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
╰─> [28 lines of output]
Traceback (most recent call last):
File "C:\Users\Dell\AppData\Roaming\Python\Python312\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\Dell\AppData\Roaming\Python\Python312\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\Dell\AppData\Roaming\Python\Python312\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\Dell\AppData\Local\Temp\pip-build-env-hc4hptab\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\Dell\AppData\Local\Temp\pip-build-env-hc4hptab\overlay\Lib\site-packages\setuptools\build_meta.py", line
295, in _get_build_requires
self.run_setup()
File "C:\Users\Dell\AppData\Local\Temp\pip-build-env-hc4hptab\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\Dell\AppData\Local\Temp\pip-build-env-hc4hptab\overlay\Lib\site-packages\setuptools\build_meta.py", line
311, in run_setup
exec(code, locals())
File "<string>", line 6, in <module>
File "C:\Program Files\Python312\Lib\inspect.py", line 1282, in getsource
lines, lnum = getsourcelines(object)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\inspect.py", line 1264, in getsourcelines
lines, lnum = findsource(object)
^^^^^^^^^^^^^^^^^^
File "C:\Program Files\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.
Reply
#2
I went to the package website and looked under "issues". Looks like there is a workaround for now.

https://github.com/TaylorSMarks/playsound/issues/150

Quote:pip install playsound@git+https://github.com/taconi/playsound
This command can be used temporarily for installing the package tho.
Reply
#3
pip install wheel
pip install playsound
this fixed the issue for me
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  GitHub, playsound install Qs/? tronic72 5 1,366 Nov-12-2023, 09:32 PM
Last Post: tronic72
  Installing time module Led_Zeppelin 2 11,949 Aug-31-2021, 02:16 PM
Last Post: Led_Zeppelin
  Although this is a talib related Q it's mostly related to python module installing.. Evalias123 4 5,702 Jan-10-2021, 11:39 PM
Last Post: Evalias123
  error while installing any library using pip in windows AkashKansal 1 4,412 Sep-24-2020, 07:51 AM
Last Post: buran
  Pip prints huge error when installing p5 hayden2s 1 2,266 Aug-08-2020, 02:30 PM
Last Post: snippsat
  Installing Error - Python 2.7.8 saranana 2 2,572 Jun-04-2020, 02:25 AM
Last Post: pyzyx3qwerty
  Module not Installing Evil_Patrick 9 4,592 May-27-2020, 03:45 PM
Last Post: Evil_Patrick
  vlc module error pythonprogrammer 1 2,880 Apr-23-2020, 04:16 AM
Last Post: Larz60+
  Getting error while installing packages using pip Shreya 2 4,070 Apr-22-2020, 08:03 AM
Last Post: Shreya
  Error Installing PySceneDetect and OpenCV jpnoli 1 1,926 Mar-26-2020, 12:19 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020