Share your repls and programming experiences

← Back to all posts
Connect 4
DoeDeo

My First Post - Connect 4
Hope you like it :)

  • DoeDeo
Voters
DoeDeo
Comments
hotnewtop
Spacecraft

It crashes for me when it attempts to play the audio file:

Traceback (most recent call last):
File "main.py", line 206, in <module>
game(turn, error)
File "main.py", line 140, in game
sound()
File "main.py", line 88, in sound
source = replit.audio.play_file('drop.wav')
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/replit/audio/init.py", line 294, in play_file
return self.get_new_source(name, does_loop)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/replit/audio/
init.py", line 230, in get_new_source
sources = AudioStatus(self.read_status())["Sources"]
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/replit/audio/init.py", line 382, in read_status
with open("/tmp/audioStatus.json", "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/audioStatus.json'

DoeDeo

@Spacecraft ahh yh sry normally when i play it it just says confirm that u want to hear a sound and it works. for some reason when i shared it, it doesnt work anymore. im just going to comment out the sound function and sry for it not working but ty for taking time to look at the project :)))