We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946d930 commit 75266b7Copy full SHA for 75266b7
pyexcel_ods3/odsbook.py
@@ -90,7 +90,13 @@ class ODSBook:
90
91
def __init__(self, filename, file_content=None, **keywords):
92
"""Load the file"""
93
- self.doc = ezodf.opendoc(filename, file_content)
+ import pkg_resources
94
+ if pkg_resources.require("ezodf")[0].version == "0.2.5-chfw":
95
+ self.doc = ezodf.opendoc(filename, file_content)
96
+ else:
97
+ if file_content:
98
+ raise NotImplementedError("Please use custom version of ezodf")
99
+ self.doc = ezodf.opendoc(filename)
100
self.SHEETS = OrderedDict()
101
self.sheet_names = []
102
for sheet in self.doc.sheets:
0 commit comments