#13269 closed defect (fixed)
Can't open an XLSX file.
Reported by: | Owned by: | Daniel Rolls | |
---|---|---|---|
Priority: | normal | Component: | ExcelXlstViewerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
When I try to open an Excel sheet in Trac 1.2.2 with the current version of the plugin, I get this error:
Warning: HTML preview using ExcelXSLTRenderer failed (AttributeError: 'Worksheet' object has no attribute 'get_highest_row')
Is there a minimum version of Excel for which this works?
Attachments (0)
Change History (5)
comment:1 Changed 7 years ago by
comment:4 Changed 7 years ago by
Replying to Ryan J Ollos:
Be sure to uninstall the old plugin before installing this version, as the entry point has been changed.
Hmmm. All this time I have been using Trac, and I have never uninstalled a plugin. I installed it via the setup.py in the plugin. How to uninstall? (I feel rather stupid asking!)
BTW, I do not use pip or easy_install because on openSUSE there seems to be an issue. I run Python 2.7 (to make Trac happy), but these at some point get confused and want to do some Python 3 stuff. So I use the plugin's setup.py to do the installs.
It seems
get_highest_row
method has been removed in openpyxl 2.4. See https://bitbucket.org/openpyxl/openpyxl/commits/39ce87a92a1ed4e48e452676248e479fc276c56c#chg-openpyxl/worksheet/worksheet.py.However, return value of the
sheet.get_highest_row()
is not used. We could remove the line...?excelxlstviewerplugin/0.11/tracexcelxlstviewer/__init__.py
sheet.get_highest_row()