Ask coding questions

← Back to all posts
Playsound error?
stepulazapletal (0)

okay im trying to playsound in my repl but, every time i try iget this error:

Traceback (most recent call last):
  File "", line 3, in <module>
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/", line 91, in _playsoundNix
    import gi
ModuleNotFoundError: No module named 'gi'

Any suggestions?

Coder100 (18109)

Use replit audio instead, any other library will not work.

stepulazapletal (0)

@Coder100 okay, it is in there but, i want only to play the sound. I dont want it to heve like the pause function, volume, loop can you please edit it for me?

LegendaryWolf (573)

rename the file as that may or may not work ig...

stepulazapletal (0)

@LegendaryWolf that file owner is my sister.
my file is

LegendaryWolf (573)

it doesn't work for .wav files. ig only .mp3 files are supported. try converting the erro.wav file to erro.mp3 :) hope that will work