Facundo Batista wrote: > David Nicolson wrote: > > >>Thanks, but it's definitely not the print. In original the code the >>print statements are replaced by a call to a log method. >> >>Besides, the exception would be different if it was thrown outside of >>the try block. > > > The best you can do is take the piece of code that has the problem, show > it to us, and then copy the traceback. > > Regards,
There may be some problem here with a file being recognized as Unicode in binary mode. That shouldn't happen, but looking at the Windows UNICODE support, it might not be impossible. Information needed: - Platform (Windows, Linux, ...) - Python version - A hex dump of the first few bytes of the input file. John Nagle -- http://mail.python.org/mailman/listinfo/python-list