You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to update the sdk version to 20.66.00, I get the following error:
>pythonscripts/generate_profile.py/path/to/fit-sdk.zipfitparse/profile.pyTraceback (mostrecentcalllast):
File"scripts/generate_profile.py", line548, in<module>main(xls, profile)
File"scripts/generate_profile.py", line506, inmainxls_file, profile_version=get_xls_and_version_from_zip(input_xls_or_zip)
File"scripts/generate_profile.py", line486, inget_xls_and_version_from_ziparchive.open('c/fit.h').read().decode(),
File"/Users/pokey/.pyenv/versions/3.6.5/lib/python3.6/zipfile.py", line1352, inopenzinfo=self.getinfo(name)
File"/Users/pokey/.pyenv/versions/3.6.5/lib/python3.6/zipfile.py", line1281, ingetinfo'There is no item named %r in the archive'%name)
KeyError: "There is no item named 'c/fit.h' in the archive"
I believe this is because the desired path is actually not at the root of the zip, but rather just below the top-level FitSDKRelease_20.66.00 directory
Maybe I'm missing something in that PR, but I don't believe that fixes the problem at hand, which I believe will continue to be a problem when someone tries to update profile.py again based on a newer version of the SDK
Replace two files' names in scripts/generate_profile.py may help.
'c/fit.h' to 'FitSDKRelease_xx.xx.00/c/fit.h'
'Profile.xls' to 'FitSDKRelease_xx.xx.00/Profile.xls'
Activity
xmedeko commentedon Jul 19, 2018
See PR #74 is has SDK 20.66.
pokey commentedon Jul 19, 2018
Maybe I'm missing something in that PR, but I don't believe that fixes the problem at hand, which I believe will continue to be a problem when someone tries to update
profile.pyagain based on a newer version of the SDKpolyvertex commentedon Jul 19, 2018
I do not have any issue with
generate_profile.py. Perhaps it's because I have the zip archive in the same directory?pokey commentedon Aug 3, 2018
Hmm just tried that, and still got the same error message
lin826 commentedon Sep 1, 2018
Replace two files' names in scripts/generate_profile.py may help.
'c/fit.h' to 'FitSDKRelease_xx.xx.00/c/fit.h'
'Profile.xls' to 'FitSDKRelease_xx.xx.00/Profile.xls'