-
Notifications
You must be signed in to change notification settings - Fork 183
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
import fitparse fails with "SyntaxError: multiple exception types must be parenthesized" #144
Comments
The only instance of this I can find is in the API docs, which I have fixed in #145 . These docs aren't run in any way on import so no idea why you would be seeing an error from it. Is the |
Traceback (most recent call last):
File ~/anaconda3/lib/python3.11/site-packages/IPython/core/interactiveshell.py:3553 in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
Cell In[52], line 1
import fitparse
File ~/Library/Mobile Documents/com~apple~CloudDocs/Documents/programming/python/fitparse/fitparse/__init__.py:1
from fitparse.activity import Activity
File ~/Library/Mobile Documents/com~apple~CloudDocs/Documents/programming/python/fitparse/fitparse/activity.py:2
from fitparse.base import FitFile
File ~/Library/Mobile Documents/com~apple~CloudDocs/Documents/programming/python/fitparse/fitparse/base.py:72
except Exception, e:
^
SyntaxError: multiple exception types must be parenthesized
… On Jan 14, 2024, at 9:11 AM, Carey Metcalfe ***@***.***> wrote:
The only instance of this I can find is in the API docs, which I have fixed in #145 <#145> . These docs aren't run in any way on import so no idea why you would be seeing an error from it. Is the SyntaxError in code that you copied from the docs? Or maybe it's from a different library? I'd need to see a traceback to look any more into it.
—
Reply to this email directly, view it on GitHub <#144 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADSDBLG4ISYH2DPY3BZDTDTYOPRQ3AVCNFSM6AAAAABBZZ56VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHE3DGOBVHA>.
You are receiving this because you authored the thread.
|
I think you may have the wrong library. The traceback mentions the module |
The offending line seems to be " except Exception, e:"
The text was updated successfully, but these errors were encountered: