[Tutor] unrelated sound error - pygame, or other?

Max Noel maxnoel_fr at yahoo.fr
Tue Apr 19 01:43:44 CEST 2005


On Apr 18, 2005, at 23:18, D. Hartley wrote:

> Another quick question.  I tried to send a file to my friend to test
> it out, and it gave her the following sound-related error:
>
> Cannot load sound: data\explode2.wav
>
> Traceback (most recent call last):
>   File "D:\Python24\play w paused screen residue.py", line 495, in 
> -toplevel-
>     playing = main()
>   File "D:\Python24\play w paused screen residue.py", line 318, in main
>     explode = load_sound("explode2.wav")
>   File "D:\Python24\play w paused screen residue.py", line 52, in 
> load_sound
>     raise SystemExit, message
> SystemExit: Mix_LoadWAV_RW with NULL src
>
> I can tell this is a sound problem, and I thought then that maybe she
> hadnt installed pygame or had done it wrong, but she says it's in
> there.  This hasnt happened on either of my machines, or a machine at
> another friend's house (where I have been working on it too).  Any of
> you encounter this problem before, or know what it is?
>
> Thanks again!
>
> ~Denise

	I'm not familiar with Pygame, but the "NULL src" bit feels like the 
sound file (explode2.wav) is missing, or that at least Pygame can't 
open it.
	Check the relative positions of the program and the WAV file -- it 
looks like they should be in the same directory in order for the 
program to work.

-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting 
and sweating as you run through my corridors... How can you challenge a 
perfect, immortal machine?"



More information about the Tutor mailing list