-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Prefer XLSX plugin when reading XLSX files. #99
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #99 +/- ##
==========================================
+ Coverage 97.83% 97.91% +0.07%
==========================================
Files 52 52
Lines 3332 3360 +28
==========================================
+ Hits 3260 3290 +30
+ Misses 72 70 -2
Continue to review full report at Codecov.
|
Makes sense. Please update changelog.yml and tick on new bsd license box. Thanks for adding 3.9-dev. If you want the change stay, the right place(the strange place) is .moban.d/custom_travis.yml.jj2. Then our tool will render it as .travis.yml |
Just a note: this change does not have material change rather the helper message put xlsx before xls. Inside pyexcel, there is no preference mechanism. |
@craiga , what's your plan for this PR? if you want to force pyexcel-io to use pyexcel-xlsx, you can pass on a parameter: "library=..". |
@chfw As you mentioned, I've just verified that this change doesn't fix the issue I'm seeing in my app. I've been trying to replicate the problem in a test inside pyexcel-io without luck. I'm going to close this PR and do some more investigation. |
Please use ‘library’ option to force it to use pyexcel-xlsx |
@chfw That approach works, but unfortunately I can't see a good opportunity to specify a library when the file is uploaded using |
Reading xlsx files with xlrd appears to be broken in Python 3.9.
Reading xls files still works fine, but xlrd's XML parsing seems to rely on a method which has been removed from ElementTree. I haven't looked to far into this, but I did see this in what's new in Python 3.9:
This means that I can't parse xlsx and xls files under Python 3.9, as pyexcel-xls is preferred over pyexcel-xlsx.
This PR should resolve this, but I don't know what the knock-on effects of this might be.
What do you think?
make format
been run?