Skip to content
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

Peg openpyxl dependency to 2.4.9 to avoid non-backwards compatible api change #801

Merged
merged 4 commits into from
Jan 10, 2019

Conversation

andrewgy8
Copy link
Member

@andrewgy8 andrewgy8 commented Jul 8, 2018

As mentioned here and here, openpyxl has changed there api for xlsx. Currently when exporting to xlsx we receive a 500 error.

Addresses #762

@coveralls
Copy link

coveralls commented Jul 8, 2018

Coverage Status

Coverage increased (+0.02%) to 92.501% when pulling 25f17e3 on andrewgy8:master into 9007be3 on django-import-export:master.

@bmihelac
Copy link
Member

Hi @andrewgy8 and thanks for filling this pull request. I wonder if we should wait until this issue is fixed in tablib upstream?

@andrewgy8
Copy link
Member Author

andrewgy8 commented Jul 21, 2018

Hey @bmihelac!

I would say that would be the best course of action. But it does not seem like we can be sure when tablib will have this fixed/released. As you can see in this issue, there seems to be some worry from the community about the maintenance and governance in general.

I would say the next best course of action, is for ourselves to be proactive (this PR) AND watch closely the progress of the issue in tablib that addresses this error. And it might be a healthy exercise to watch the state of tablib in general.

@lubo
Copy link

lubo commented Jul 24, 2018

@andrewgy8 is right, we should stick to versions that are known to work. Although I'd stick to openpyxl 2.4 series, rather than to 2.4.9 in particular. Something like openpyxl>=2.4,<2.5.

@andrewgy8
Copy link
Member Author

@bmihelac I have updated this PR. What do you think? Shall we peg and wait?

@dv321
Copy link

dv321 commented Sep 24, 2018

This is causing exports to break for me unless I peg the openpyxl version, and since the resolution of the tablib issue seems unclear I'd humbly recommend that this be merged so the library doesn't come broken out of the box, at least until the tablib fix goes through.

Edit: It seems that https://github.com/kennethreitz/tablib/pull/296 already fixes this, so maybe just waiting to peg the version of the next tablib release would be smarter?

@bmihelac
Copy link
Member

bmihelac commented Oct 2, 2018

Sorry for late reply. So what is the best action here? wait for tablib or peg?

@andrewgy8
Copy link
Member Author

andrewgy8 commented Oct 3, 2018

@bmihelac No worries. I would suggest merging this. In my opinion its best to be proactive rather than reactive. We can bump the pinned version when underlying libs have this fixed in their releases.

@aparakian
Copy link

Any update on this? That would be great to have this merged since it seems to solve the issue quite well.

@andrewgy8
Copy link
Member Author

@aparakian Still in a holding pattern for a member to merge.

@bmihelac Any chance we can merge this soon?

@bmihelac bmihelac merged commit 928ec9f into django-import-export:master Jan 10, 2019
@bmihelac
Copy link
Member

Merged, @andrewgy8 thanks for patch!

@aparakian
Copy link

Thank you @bmihelac for the reactivity! ⭐️

@andrewgy8
Copy link
Member Author

No worries @bmihelac 👍

I'd like to help out as much as I can as we use this package quite extensively. Ill keep an eye out for other patches I can submit 😉

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

Successfully merging this pull request may close these issues.

None yet

6 participants