0

I'm trying to play sound using playsound. Here is the code I have. playsound('Chris Christodoulou - Coalescence Risk of Rain (2013).mp3') When it gets to this code though, I get this error.

Traceback (most recent call last):
  File "main.py", line 19, in <module>
    playsound('Chris Christodoulou - Coalescence Risk of Rain (2013).mp3')
  File "/home/runner/CrushingUntriedSet/venv/lib/python3.8/site-packages/playsound.py", line 254, in <lambda>
    playsound = lambda sound, block = True: _playsoundAnotherPython('/usr/bin/python3', sound, block, macOS = False)
  File "/home/runner/CrushingUntriedSet/venv/lib/python3.8/site-packages/playsound.py", line 229, in _playsoundAnotherPython
    t.join()
  File "/home/runner/CrushingUntriedSet/venv/lib/python3.8/site-packages/playsound.py", line 218, in join
    raise self.exc
  File "/home/runner/CrushingUntriedSet/venv/lib/python3.8/site-packages/playsound.py", line 211, in run
    self.ret = self._target(*self._args, **self._kwargs)
  File "/home/runner/CrushingUntriedSet/venv/lib/python3.8/site-packages/playsound.py", line 226, in <lambda>
    t = PropogatingThread(target = lambda: check_call([otherPython, playsoundPath, _handlePathOSX(sound) if macOS else sound]))
  File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/subprocess.py", line 359, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python3'

Can you help me understand what this means and how I can fix this?

GoudyuGood
  • 73
  • 1
  • 7

0 Answers0