-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
COMPAT: Break in openpyxl #7169
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
Comments
I think that I would suggest for now downgrade to the 1.x series (1.8.6) it didn't seem to be trvial to fix pandas, though a PR would be welcom |
you can also install |
I'm starting to dig into this now. First stumbling block: I want to get Travis-CI to start testing against both versions of OpenPyXL, but I just learned about how |
don't worry about the wheels u can do several versions of u want (in different builds) I build the wheels - but since these r not compiled modules it doesn't make much difference (if it can't pull the wheel it will just get from pypi) |
@jreback: Thank you for the fast response. Sorry if I'm being dense. Are you suggesting I test against both versions of OpenPyXL by changing some reqt's but not all, and thereby having something like:
...but not...
? This was my initial attempt: neirbowj/pandas@3b36527c |
no don't add any builds (eg don't modify Travis.yml) pandas takes so long to build/run (even with a lot of caching) that we limit to 5 builds |
Got it. Onward I merrily stumble. |
haha np that said if I think we ought to be testing different versions of other libs pls say so |
On a different tack I've started to look at putting in a The main issue is that the style objects used by I'll post a separate PR when I have something working. |
@neirbowj any luck with this? |
@jreback A little. I didn't have any time to work on it yesterday, and I won't today either. Tomorrow is looking promising. I've gotten as far as teaching the unit test to be version aware, and teaching |
ok great at least for 0.14.0 i would like it to not break lmk on progress |
I'll keep that in mind. Thank you. |
@neirbowj not harassing, but .... :) |
Today is still looking promising. When I start on it after $WORK, the first thing I'll do is make a simple patch that detects OpenPyXL 2, fails the unit test, and informatively disables |
that sounds good thanks |
Finishing for tonight. Will continue tomorrow afternoon. |
ok...lmk when you are ready for us to take a look |
@jmcnamara re. immutable styles - we will probably modify these in 2.1 as the current implementation is a big performance hit. Client code won't really notice the difference but you won't have to be as verbose as it currently is. Performance will then be a closer to what can be reasonably be expected. |
Has there been any development on this? Or is there a workaround to get it to work without downgrading? |
this was fixed in 0.14.1. So any version of pandas >= 0.14.1 should work (0.15.1) is the current. |
openpyxl
(2.0.2), fix for this, see here: https://travis-ci.org/pydata/pandas/jobs/25510797When I try to use
DataFrame
to_excel
, I was given the following error. I am usingPandas 0.13.1
,openpyxl 2.0.2
The text was updated successfully, but these errors were encountered: