Hi group,
I’m experimenting with the pymedia package, for reading/converting mp3, m4a, etc.
pymedia works properly from the CMD shell prompt (Windows XP SP1, Python 2.3).
However, when I run it from my py.shell.Shell, it causes a fatal unhandled exception error.
I don’t mind delving into the problem more, but before I do, I thought I’d see if people have come across similar issues. The code that causes the problem is below.
Many thanks!
- Andy
The code:
import pymedia.audio.acodec as acodec
f = open(‘3.mp3’,‘rb’)
s = f.read()
dec = acodec.Decoder(‘mp3’)
res = dec.decode( s )
The last line causes an “unhandled exception” fault and crashes the program.
···
Andrew LaMora
Graduate Student, Computer Science
http://cs.jhu.edu/~alamora
ERC/CISST
The Johns Hopkins University
Phone: (410) 516-4779
Email: alamorajhu.edu