[issue7681] Incorrect division in [wave.py] causing crash

Alf P. Steinbach report at bugs.python.org
Tue Jan 12 13:04:03 CET 2010


Alf P. Steinbach <alfps at start.no> added the comment:

Sorry, here's correct error message:

Traceback (most recent call last):
  File "C:\Documents and Settings\Alf\sound\error.py", line 8, in <module>
    writer.writeframes( b"\0"*2*4 )
  File "C:\Program Files\cpython\python31\lib\wave.py", line 432, in writeframes
    self.writeframesraw(data)
  File "C:\Program Files\cpython\python31\lib\wave.py", line 416, in writeframesraw
    self._ensure_header_written(len(data))
  File "C:\Program Files\cpython\python31\lib\wave.py", line 459, in _ensure_header_written
    self._write_header(datasize)
  File "C:\Program Files\cpython\python31\lib\wave.py", line 472, in _write_header
    self._sampwidth * 8, 'data'))
struct.error: required argument is not an integer
Exception struct.error: 'required argument is not an integer' in <bound method Wave_write.__del__ of <wave.Wave_write ob
ject at 0x00FE87F0>> ignored

----------
Added file: http://bugs.python.org/file15835/error.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7681>
_______________________________________


More information about the Python-bugs-list mailing list