Skip to content

CI: Fix version openpyxl #29862

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

Merged
merged 14 commits into from
Nov 26, 2019

Conversation

charlesdong1991
Copy link
Member

@charlesdong1991
Copy link
Member Author

https://bitbucket.org/openpyxl/openpyxl/issues/1373/broken-writer-with-lxml-defusedxml

Looks like there is a breaking change on openpyxl, so could limit it to <=3.0.1 to avoid upgrading to the latest version until they fix the issue.

@datapythonista
Copy link
Member

Thanks for the fix @charlesdong1991

I don't think we want this. This will fix the error in the documentation, but .to_excel() will keep broken. I think we want an actual fix.

@charlesdong1991
Copy link
Member Author

charlesdong1991 commented Nov 26, 2019

oh, sorry, did not notice your comment when i was committing @datapythonista

thanks for your review, i thought this was only a doc error since I only observed this doc error in my another failed PR, I will take a another look, or you mean you want an actual fix from openpyxl side?

@jbrockmendel
Copy link
Member

or you mean you want an actual fix from openpyxl side?

The behavior that is failing in the docbuild should be made into a test (which will currently fail with new openpyxl) which we then need to fix on our end.

@jreback
Copy link
Contributor

jreback commented Nov 26, 2019

that said, we could add a test and xfail it to avoid blocking for now (while keeping a fixed version of openpyxl).

@jbrockmendel
Copy link
Member

that said, we could add a test and xfail it to avoid blocking for now (while keeping a fixed version of openpyxl).

sounds good

@charlesdong1991
Copy link
Member Author

charlesdong1991 commented Nov 26, 2019

Thanks for both of your review @jreback and @jbrockmendel

I made a new test and xfail if version of openpyxl if newer than 3.0.1, pls take a look to see if it is something we want now to avoid this blocker for other PRs.

@jbrockmendel
Copy link
Member

LGTM. Merging so we can get the CI back up

@jbrockmendel jbrockmendel merged commit 3676831 into pandas-dev:master Nov 26, 2019
@jorisvandenbossche
Copy link
Member

Is there an issue for the openpyxl regression? (here in pandas or upstream)

@alimcmaster1
Copy link
Member

Is there an issue for the openpyxl regression? (here in pandas or upstream)

Potentially this:
https://bitbucket.org/openpyxl/openpyxl/issues/1373/broken-writer-with-lxml-defusedxml

proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* remove \n from docstring

* avoid upgrade

* limit version

* Add test and skip it for higher version

* resort imports

* change to xfail

* fix typo

* add ext

* fix test

* fix path

* better check
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* remove \n from docstring

* avoid upgrade

* limit version

* Add test and skip it for higher version

* resort imports

* change to xfail

* fix typo

* add ext

* fix test

* fix path

* better check
@pytest.mark.xfail(openpyxl.__version__ > "3.0.1", reason="broken change in openpyxl")
def test_to_excel_with_openpyxl_engine(ext, tmpdir):
# GH 29854
# TODO: Fix this once newer version of openpyxl fixes the bug
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charlesdong1991 any idea if this TODO can be addressed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this xfail should be removed!! new version of openpyxl has fixed the issue @jbrockmendel

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emm, seems have been removed on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: styled excel failure in the doc build
6 participants