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 76 forks source link

Unpack requires a string argument of length 16 #106

Closed bertel76 closed 9 years ago

bertel76 commented 10 years ago

Hi

I´m trying to run this program on Ubuntu with a Garmin Forerunner 910XT. I got the program to run and pair with the device, then I get an error and the device hangs on Transferring data... The bottom of the stacktrace is below:

File "/home/bertel/Downloads/Garmin-Forerunner-610-Extractor-master/Garmin-Forerunner-610-Extractor-master/ant/fs/comman.py", line 85 in _parse args = cls._parse_args(data) File "/home/bertel/Downloads/Garmin-Forerunner-610-Extractor-master/Garmin-Forerunner-610-Extractor-master/ant/fs/comman.py", line 241 in _parse_args (date[16:-8],) + struct.unpack("<6xH",data[-8:]) error: unpack requires a string argument of length 16

Tigge commented 10 years ago

Hello. I think this might be fixed on the split branch. Could you try that branch?

On 25 August 2014 15:22, bertel76 notifications@github.com wrote:

Hi

I´m trying to run this program on Ubuntu with a Garmin Forerunner 910XT. I got the program to run and pair with the device, then I get an error and the device hangs on Transferring data... The bottom of the stacktrace is below:

File "/home/bertel/Downloads/Garmin-Forerunner-610-Extractor-master/Garmin-Forerunner-610-Extractor-master/ant/fs/comman.py", line 85 in _parse args = cls._parse_args(data) File "/home/bertel/Downloads/Garmin-Forerunner-610-Extractor-master/Garmin-Forerunner-610-Extractor-master/ant/fs/comman.py", line 241 in _parse_args (date[16:-8],) + struct.unpack("<6xH",data[-8:]) error: unpack requires a string argument of length 16

— Reply to this email directly or view it on GitHub https://github.com/Tigge/Garmin-Forerunner-610-Extractor/issues/106.

bertel76 commented 10 years ago

Tried it, almost there but not quite, started downloading fit files but then got the same error, maybe I should delete all the activities on the device except the one I´m trying to recover (Have already deleted most of them).

This is the stacktrace:

bertel@bertel-VirtualBox:~/Downloads/Garmin-Forerunner-610-Extractor-split/Garmin-Forerunner-610-Extractor-split$ sudo python antfs-cli.py Driver available: [<class ant.base.driver.SerialDriver at 0xb71c60ec>, <class ant.base.driver.USB2Driver at 0xb71c64dc>, <class ant.base.driver.USB3Driver at 0xb71c6f8c>]

bertel76 commented 10 years ago

It worked ! I removed all the activities from the device except the one I was trying to recover and ran it again on the split branch. Many thanks for this software !