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

Setup Data Import Error - AttributeError: 'Workbook' object has no attribute 'sheetnames' #2276

Open
ronna opened this issue Oct 14, 2017 · 3 comments

Comments

@ronna
Copy link

ronna commented Oct 14, 2017

Steps to reproduce

Import the test.xlsx setup data file or custom setup data file

Current behavior

It throws a traceback:

We’re sorry, but there seems to be an error…
Here is the full error message:

Display traceback as text

Traceback (innermost last):

Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module bika.lims.exportimport.dataimport, line 127, in call
Module bika.lims.exportimport.load_setup_data, line 106, in call
Module bika.lims.exportimport.setupdata, line 87, in call
AttributeError: 'Workbook' object has no attribute 'sheetnames'

Expected behavior

Setup data should be correctly imported

Screenshot (optional)

@rockfruit
Copy link
Contributor

rockfruit [17:22] it's an incompatibility of the openpyxl library. The newer version has compatibility with newer versions of plone's lxml dependency (...by implementing a fallback for it's remaining incompatibility with lxml...) and many improvements, but does not have backwards compatibility with it's own api.

@mikejmets
Copy link
Contributor

mikejmets commented Oct 20, 2017

@ronna is the an installation of bikalims master. If so you need openpyxl = 2.4.7, previous buildouts had it pinned at 1.x.y. Where did you get your buildout?

@lemoene
Copy link
Contributor

lemoene commented Oct 24, 2017

please be sure to commit any fixes to code or data test.xlsx to the 3.2 release - is critical for newbs to configure their systems with

fixed by Mike for the demo, am leaving it open here

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

No branches or pull requests

4 participants