Error: list index out of range
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
garmin-sync |
Fix Released
|
Undecided
|
Björn Tillenius |
Bug Description
Hi,
I just tried GarminSync 0.20 with a Forerunner 305 on a fully patched Ubuntu 7.04 system with pyusb-0.4.0 installed by hand. This is what the error looked like.
whamblen@
Password:
Getting data from GPS (this might take a while)...
Traceback (most recent call last):
File "./garminsync.py", line 367, in <module>
exit_value = garmin_sync.run()
File "./garminsync.py", line 361, in run
gps.
File "./garminsync.py", line 342, in export_activities
for activity in self.get_
File "./garminsync.py", line 318, in get_activities
laps = dict((lap.index, lap) for [lap] in self.getLaps())
File "/home/
return self.lapLink.
File "/home/
self.
File "/home/
p = self.datatypes[
IndexError: list index out of range
I also tried with a friend's Forerunner 205. Both have 10-12 runs stored. The 305 has some runs with HR data but most without. Let me know if I can do anything to help figure it out. I love the idea of being able to use Garmin sync. Thank you for the efforts so far!
I won't be able to look at this closer before next week, but does this error happen every time you try to run it? Sometimes I get errors, which go away if I unplug and replug the USB cable.
BTW, I see that you use sudo to run garminsync.py. At http:// www.gpsbabel. org/os/ Linux_Hotplug. html there are instructions how to set up the permissions for the USB device, so you don't have to use sudo.