-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XLRDError from most recent xlrd #88
Comments
Seems like pandas read_excel should not use xlrd to read excel files since it does no longer support reading of xlsx. I can specify engine "openpyxl" in the read_excel commands, or do you have other suggestions @berland ? |
@berland I wanted to let you know I had encountered this issue in my github actions script as well. I fixed it by downgrading to their 1.2.0 release. So we now specify a version of xlrd to pip install in the container, rather than the latest version. here is a snippet:
You can see here they produced their first release in 2 years. Which is what broke our pipeline. |
@berland I was facing the same issue and downgrading xlrd to 1.2.0 release fixed the issue. Cheers 👍 |
I would prefer @tralsos's suggestion. We are using xlrd/openpyxl through Pandas and it will be fixed there as well, pandas-dev/pandas#38424. There should be tests for both xls and xlsx format. |
As the author of xlrd, please can I ask you not to use version 1.2 due to the potential security vulnerabilities it contains. |
See also this: equinor/pyscal#222 |
There seems to be a difference in how cells with no content except formatting, e.g. background colour is/was handled in xlrd and with openpyxl as engine. If the user has done background colouring of whole rows, it will result in additional columns with e.g 'Unnamed: 10' as header and NaN values) when using pandas.read_excel with engine 'openpyxl'. I cannot see there is an option to not read cell formatting here, so I guess I will have to do a subsequent check and drop these columns/rows. |
Here Is All Possible Solution Added Please Look At Here [Solved] xlrd.biffh.XLRDError: Excel xlsx file; not supported in python |
Crash in github actions, due to updated upstream library.
The text was updated successfully, but these errors were encountered: