Skip to content
Sign upLog in
← Back to Community

Audio was not created within 2 seconds?

Profile icon
JBloves27

Hello Replers,

today I have an error to present to you. Try running the program, and you will see it.


So the whole question is,

  • What kind of error is this?
  • Why is the program like that?

Thanks!

pogchamp.py

Voters
Profile icon
DeveloperK1ng
Profile icon
tsikora
Profile icon
DeeCee99
Profile icon
YuvanVighnesh
Profile icon
JBloves27
Comments
hotnewtop
Profile icon
realTronsi

seems like a private repl

Profile icon
JBloves27

oop, sry

@realTronsi

Profile icon
JBloves27

done and fixed

@realTronsi

Profile icon
Bookie0

Check this out for the TimeourError, it could help you understand it and might have an answer. Also maybe it's saying that the source wasn't created within 2 seconds because the song starts more than after 2 seconds? meaning maybe the audio file is being played, but actual music starts like more than 2 seconds after? idk

Profile icon
JBloves27

lol, ok. Thx

@Bookie0

Profile icon
Bookie0

@JBYT27
sure, gl with finding sometihng!

Profile icon
JBloves27
Profile icon
Bookie0
Profile icon
RYANTADIPARTHI

ok. You are getting the TimeoutError because, of a few reasons, as i think.

  • the music files may be to large to play immediately, hence the time out.
  • they are used in a while loop. Could be a reason too. Maybe put break or something.

Those are two things I'm thinking. Could be possibilites.

Profile icon
JBloves27

oh. ok, ill try that and see what happens

@RYANTADIPARTHI

Profile icon
RYANTADIPARTHI
Profile icon
JBloves27

it didnt work. Ill try Bookie0's solution

@RYANTADIPARTHI

Profile icon
Bookie0

a error

*an error :)

Profile icon
JBloves27

hahahaha, thanks! XD

@Bookie0

Profile icon
Bookie0
Profile icon
JBloves27
Profile icon
JBloves27

Sorry guys, it was private, its fixed now!

Profile icon
tussiez

The Repl doesn't seem to be loading. Is it private?

Profile icon
JBloves27

yeah, sry

@tussiez

Profile icon
YuvanVighnesh

image

Profile icon
RainBowLion1

@YuvanVighnesh
i think thats what hes talking about :(

Profile icon
JBloves27

no, its bc its private, sry

@Rainbowryan