XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

Peter J. Holzer hjp-python at hjp.at
Wed Sep 29 17:19:38 EDT 2021


On 2021-09-29 01:22:03 -0700, hongy... at gmail.com wrote:
> I tried to convert a xls file into csv with the following command, but failed:
> 
> $ in2csv --sheet 'Sheet1'  2021-2022-1.xls
> XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'
> 
> The above testing file is located at here [1].
> 
> [1] https://github.com/hongyi-zhao/temp/blob/master/2021-2022-1.xls

Why is that file name .xls when it's obviously an HTML file?

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp at hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/python-list/attachments/20210929/f4ba8e5e/attachment.sig>


More information about the Python-list mailing list