jazzband / tablib

Python Module for Tabular Datasets in XLS, CSV, JSON, YAML, &c.
https://tablib.readthedocs.io/
MIT License
4.56k stars 588 forks source link

`InvalidDimensions` for `.xlsx` file from Google Drive #561

Open OttoAndrey opened 10 months ago

OttoAndrey commented 10 months ago

Hi! I am using django-import-export and downloaded .xlsx file from Google Drive and I've got error about InvalidDimensions. I found this error before in issues https://github.com/jazzband/tablib/issues/465 And recently it was fix for it https://github.com/jazzband/tablib/pull/547 But maybe my problem is different.

tablib==3.5.0 Link to file on google drive

image

I found where error is raising. Interesting that self._data contains three rows (third row is empty thats why it raises error because of is_valid in 248 row of code) but file contains only header and two rows with values.

image