Tigge / antfs-cli

Extracts FIT files from ANT-FS based sport watches such as Garmin Forerunner 60, 405CX, 310XT, 610 and 910XT.
MIT License
312 stars 77 forks source link

SyntaxError: invalid syntax when running antfs-cli #186

Open L150 opened 3 years ago

L150 commented 3 years ago

Hi, I'm running Kali Linux and got this to work in the past, but this time I get a syntax error when trying to run antfs-cli. The installation went well both with openant ant antfs-cli, at least that's what I think.

Could you guide me how to resolve this?


antfs-cli --pair Traceback (most recent call last): File "/usr/local/bin/antfs-cli", line 11, in load_entry_point('antfs-cli==0.4', 'console_scripts', 'antfs-cli')() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2852, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2443, in load return self.resolve() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2449, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/lib/python2.7/dist-packages/antfs_cli-0.4-py2.7.egg/antfs_cli/program.py", line 181 print(" - Passkey:", end=" ") ^ SyntaxError: invalid syntax

Tigge commented 3 years ago

I recently removed the Python 2.7 support since it has reached end of life at the end of last year. Please try with Python 3.6 or above.

L150 commented 3 years ago

Right, I should have tried Python 3 of course. The installation worked fine. Thx!

But now I get another message when I try to pair my 910xt. Of course there is something I have missed, could you help me with this one as well?


Driver available: [<class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]

Tigge commented 3 years ago

I just merged a pull request to openant which might have fixed this. Could you try installing again? If not it should be possible to use openant commit ae9e7366fb78b2c39467e1a028b34cfb0c64ffd7.

bluebaer7 commented 3 years ago

installed the update on pi3b+ and got follow error:

**

pi@pi:~/garmin/antfs-cli $ antfs-cli Traceback (most recent call last): File "/usr/local/bin/antfs-cli", line 11, in <module> load_entry_point('antfs-cli==0.4', 'console_scripts', 'antfs-cli')() File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 561, in load_entry_point File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 2631, in load_entry_point File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 2291, in load File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 2297, in resolve File "/usr/local/lib/python2.7/dist-packages/antfs_cli-0.4-py2.7.egg/antfs_cli/program.py", line 181 print(" - Passkey:", end=" ") ^ SyntaxError: invalid syntax

**

L150 commented 3 years ago

Hi, have reinstalled both Kali and Python3. Get this Timed Out message. Looks like it finds the USB when running lsusb, but I'm thinking about a faulty Ant stick...? Any opinions? Perhaps using USB3 driver?

──(anon㉿kali)-[~] └─$ antfs-cli --pair Driver available: [<class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]

┌──(anon㉿kali)-[~] └─$

Tigge commented 3 years ago

@L150 There should be a new openant out with a fix for this

@bluebaer7 Looks like you are also running Python 2.7. It is now unsupported.