Python: from garmin-fit-sdk import Decoder, Stream --> invalid syntax

Hello everyone,

just a short stupid question from a newbie. I copied the following example from the example site for python code:

from garmin-fit-sdk import Decoder, Stream
stream = Stream.from_file("Activity.fit")
decoder = Decoder(stream)
messages, errors = decoder.read()

print(errors)
print(messages)

But I get an error in line 1 at position 12: invalid syntax

I use VSCode with Python 3.11.0. I tried also at the command line and got the same error.

I installed the garmin-fit-sdk with "pip install garmin-fit-sdk"

I also tried at the command line and got the same error.

From my point of view the problem is with the "-". in the garmin-fit-sdk name.

Sorry for this stupid question bit IO tried allready a view hours.

Thanks in advance for your help. :-)

Best regards

Sabine