Tigge/antfs-cli

Error when running garmin.py (cannot find the file specified)

Closed this issue · 6 comments

Hello

I am trying to use the Garmin extractor for a Garmin Forerunner 910XT. I´m doing this on Windows using Python 2.7 and have installed pyusb.

The info on the USB ANT stick in Device Manager is as follows:
ANT USB Stick 2, driver version: 1.2.40.201,
driver details: c:\Windows\system32\AntUsbClv2.dll, c:\Windows\system32\drivers\libusb0.sys,
c:\Windows\system32\libusb0.dll

I get an error when I run garmin.py, here is the stacktrace:

C:\Python27\Tools\Garmin-Forerunner-610-Extractor-master>python Garmin.py
Driver available: [<class ant.base.driver.USB2Driver at 0x01891340>, <class ant.
base.driver.USB3Driver at 0x01891378>]

  • Using: ant.base.driver.USB2Driver
    Traceback (most recent call last):
    File "Garmin.py", line 336, in main
    g = Garmin(options.upload)
    File "Garmin.py", line 137, in init
    Application.init(self)
    File "C:\Python27\Tools\Garmin-Forerunner-610-Extractor-master\ant\fs\manager.
    py", line 82, in init
    self._node = Node()
    File "C:\Python27\Tools\Garmin-Forerunner-610-Extractor-master\ant\easy\node.p
    y", line 48, in init
    self.ant = Ant()
    File "C:\Python27\Tools\Garmin-Forerunner-610-Extractor-master\ant\base\ant.py
    ", line 59, in init
    self._driver.open()
    File "C:\Python27\Tools\Garmin-Forerunner-610-Extractor-master\ant\base\driver
    .py", line 185, in open
    cfg = dev.get_active_configuration()
    File "c:\python27\lib\site-packages\usb\core.py", line 805, in get_active_conf
    iguration
    return self.ctx.get_active_configuration(self)
    File "c:\python27\lib\site-packages\usb\core.py", line 211, in get_active_conf
    iguration
    bConfigurationValue=self.backend.get_configuration(self.handle)
    File "c:\python27\lib\site-packages\usb\backend\libusb0.py", line 460, in get

    configuration
    100)
    File "c:\python27\lib\site-packages\usb\backend\libusb0.py", line 528, in ctrl
    _transfer
    timeout
    File "c:\python27\lib\site-packages\usb\backend\libusb0.py", line 380, in _che
    ck
    raise USBError(errmsg, ret)
    USBError: [Errno None] libusb0-dll:err [control_msg] sending control message fai
    led, win error: The system cannot find the file specified.

Interrupted: [Errno None] libusb0-dll:err [control_msg] sending control message
failed, win error: The system cannot find the file specified.

I don't think anyone have tried to get this running on Windows before at all. It might be possible but it might require some modifications to the code. If you want to continue on this path you might want to try the drivers from http://libusb.info/.

Besides this driver issue you'll probably run into a few path problems, among other thing. Since I don't have a Windows machine at all (the reason for this project) I can't really help much more than pointers like these.

Also, I'm curious. Why do you want to run this software instead of the official ant agent?

The reason is that I have a workout (an Ironman) that doesn´t upload with the ANT agent.

Garmin Connect hangs on the upload and Strava only gives me the swim leg, although the activity can be seen on the watch. The watch shows me the workout and the first lap but it looks like the file is corrupt as I never get past the swim leg.

I can´t access the fit file on the watch with the ANT agent and was hoping to do that with this tool and then fixing the file or at least get some more data out of it.

Hi Bertel76.
Have you been able to get this to work in windows? I have a bunch of workouts on my 910XT that I can't see on the watch or download. Any help would be greatly appreciated!

No not in Windows.

I installed Linux using a virtual machine (Virtualbox) and then ran the extractor on Linux. That worked for me.

Ok. Thanks!

On 11/29/2014 1:00 PM, bertel76 wrote:

No not in Windows.

I installed Linux using a virtual machine (Virtualbox) and then ran
the extractor on Linux. That worked for me.


Reply to this email directly or view it on GitHub
#105 (comment).

Duplicate of #113