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

xlrd.biffh.XLRDError: Excel xlsx file; not supported #129

Open
MeisterP opened this issue May 15, 2021 · 2 comments · May be fixed by #134
Open

xlrd.biffh.XLRDError: Excel xlsx file; not supported #129

MeisterP opened this issue May 15, 2021 · 2 comments · May be fixed by #134

Comments

@MeisterP
Copy link

$ python3 scripts/generate_profile.py FitSDKRelease_21.53.00.zip fitparse/profile.py
Traceback (most recent call last):
  File "/devel/git/python-fitparse/scripts/generate_profile.py", line 626, in <module>
    main(xls, profile)
  File "/devel/git/python-fitparse/scripts/generate_profile.py", line 558, in main
    types_rows, messages_rows = parse_spreadsheet(xls_file, 'Types', 'Messages')
  File "/devel/git/python-fitparse/scripts/generate_profile.py", line 339, in parse_spreadsheet
    workbook = xlrd.open_workbook(file_contents=xls_file.read())
  File "/usr/lib/python3.9/site-packages/xlrd/__init__.py", line 170, in open_workbook
    raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported

from https://github.com/python-excel/xlrd#xlrd

Warning

This library will no longer read anything other than .xls files. For alternatives that read newer file formats, please see http://www.python-excel.org/.

@dtcooper
Copy link
Owner

You'll need to use openpyxl or a library that can read xlsx files. PR welcome!

@fundthmcalculus fundthmcalculus linked a pull request Nov 1, 2021 that will close this issue
@fundthmcalculus
Copy link

@dtcooper see here: #134

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

Successfully merging a pull request may close this issue.

3 participants