This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loki_dePlume
Recipients loki_dePlume
Date 2008-03-06.16:52:22
SpamBayes Score 0.07919323
Marked as misclassified No
Message-id <1204822344.2.0.466596380411.issue2245@psf.upfronthosting.co.za>
In-reply-to
Content
When aifc tries to open an AIFF audio file, it collects the file's chunk 
information. Apparently some AIFF files contain a chunk type string "CHAN", 
and the module just won't open the files...

Here's a captured error message:
------------
>>> import os
>>> os.getcwd()
'C:¥¥Documents and Settings¥¥loki'
>>> import aifc
>>> f=aifc.open('tr_04.aif','r')
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:¥Python25¥lib¥aifc.py", line 928, in open
    return Aifc_read(f)
  File "C:¥Python25¥lib¥aifc.py", line 341, in __init__
    self.initfp(f)
  File "C:¥Python25¥lib¥aifc.py", line 320, in initfp
    raise Error, 'unrecognized chunk type '+chunk.chunkname
Error: unrecognized chunk type CHAN
>>> 
------------

Solution: Add 'CHAN' in the list of _skiplist item, in lib/aifc.py, line 147
History
Date User Action Args
2008-03-06 16:52:24loki_dePlumesetspambayes_score: 0.0791932 -> 0.07919323
recipients: + loki_dePlume
2008-03-06 16:52:24loki_dePlumesetspambayes_score: 0.0791932 -> 0.0791932
messageid: <1204822344.2.0.466596380411.issue2245@psf.upfronthosting.co.za>
2008-03-06 16:52:23loki_dePlumelinkissue2245 messages
2008-03-06 16:52:22loki_dePlumecreate