You probably made a mistake installing.
Check you have both pyexcel
and pyexcel-ods
:
pip install pyexcel pyexcel-ods
Try the following code:
from pyexcel import get_book
sheet = get_book(file_name="file_example_ODS_10.ods")
print(sheet)
(you can get a valid example file here https://file-examples.com/index.php/sample-documents-download/sample-ods-download/)
To get names:
from pyexcel import get_book
sheet = get_book(file_name="file_example_ODS_10.ods")
print(sheet.sheet_names())
Result:
['Sheet1']
Note that, in your example, you were trying to call get_book
and Sheet
directly on the pyexcel_ods
module, while I only import pyexcel
(and have the ods module installed) and that just works, pyexcel finds the module automatically when opening a .ods file.