[Pythonmac-SIG] Is wave.py maybe broken?

Dinu Gherman gherman at darwin.in-berlin.de
Thu Apr 29 04:48:54 EDT 2004


Hi,

I'm trying to use the wave module in the standard library, but seem
to get errors when accessing .wav files which are otherwise playing
fine on OS X (see traceback below).

Is this perhaps an issue with a "vaguely defined" format or is it
platform-specific, even? Thanks for any hints... Here's a sample
which gives me the error below:

   http://www.dailywav.com/0404/seriousbitch.wav

Dinu

   Python 2.3.3 (#1, Feb  2 2004, 19:00:54)
   [GCC 3.1 20020420 (prerelease)] on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>>
   >>> import wave
   >>> f = wave.open("seriousbitch.wav")
   Traceback (most recent call last):
     File "<stdin>", line 1, in ?
     File "/usr/lib/python2.3/wave.py", line 483, in open
       return Wave_read(f)
     File "/usr/lib/python2.3/wave.py", line 162, in __init__
       self.initfp(f)
     File "/usr/lib/python2.3/wave.py", line 143, in initfp
       self._read_fmt_chunk(chunk)
     File "/usr/lib/python2.3/wave.py", line 264, in _read_fmt_chunk
       raise Error, 'unknown format: ' + `wFormatTag`
   wave.Error: unknown format: 85
   >>>

--
Dinu C. Gherman - http://python.net/~gherman
......................................................................
"The best way to predict the future is to invent it." (Alan Kay)




More information about the Pythonmac-SIG mailing list