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

Windows 7 - Import Error: no module named 'ant' #153

Open xaviergm opened 7 years ago

xaviergm commented 7 years ago

Hi, I am helping a guy get sorted in windows 7 with antfs-cli in order to sync his 910xt after one of the activities got corrupted. Apparently this is the only way. We managed to set it up completely, but when trying to sync he gets the following error: img_1009

I'm going to try and get the text version of the screenshot... Thanks a lot for your help!

EDIT Here is the text version of the error output, which I reproduced on a Windows 7 PC of my own:

C:\00-GUTIERRX\Applications\Python\Python35\Scripts>antfs-cli.exe
Traceback (most recent call last):
  File "C:\00-GUTIERRX\Applications\Python\Python35\Scripts\antfs-cli-script.py", line 11, in <module>
    load_entry_point('antfs-cli==0.3', 'console_scripts', 'antfs-cli')()
  File "C:\00-GUTIERRX\Applications\Python\Python35\lib\site-packages\pkg_resources\__init__.py", line 565, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\00-GUTIERRX\Applications\Python\Python35\lib\site-packages\pkg_resources\__init__.py", line 2631, in load_entry_point
    return ep.load()
  File "C:\00-GUTIERRX\Applications\Python\Python35\lib\site-packages\pkg_resources\__init__.py", line 2291, in load
    return self.resolve()
  File "C:\00-GUTIERRX\Applications\Python\Python35\lib\site-packages\pkg_resources\__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "C:\00-GUTIERRX\Applications\Python\Python35\lib\site-packages\antfs_cli-0.3-py3.5.egg\antfs_cli\program.py", line 36, in <module>
ImportError: No module named 'ant'

C:\00-GUTIERRX\Applications\Python\Python35\Scripts>
Tigge commented 7 years ago

I haven't run this on Windows at all I'm afraid and it is not coded to work on Windows really. The underlying openant library should theoretically work on Windows but I don't think this have been attempted.

xaviergm commented 7 years ago

The underlying openant library should theoretically work on Windows but I don't think this have been attempted.

Is openant for Linux meant to act as the ANT+ Driver for then running the antfs-cli on top? I believe the problem is that there are no such thing as kernel modules (at least not with the same architecture, I guess) in Windows that can be spawned just like in Linux.

I haven't run this on Windows at all I'm afraid and it is not coded to work on Windows really.

I can see that :joy: Let me investigate a bit... otherwise I will need to tell the guy that he has to factory reset his 910xt, losing all the activities after the corrupted one...

xaviergm commented 7 years ago

One last quick though: what is the Python version compatibility? The guy installed the latest (3.5). Is your software compatible with Python 3 or just with Python 2?

Tigge commented 7 years ago

Openant is an ANT/ANT-FS/ANT+ library - ANT is the low lever protocol and ANT-FS is implemented on top of ANT and is what gets your activities of the sports watch. Openant talks directly to the USB stick through one of several supported usb-libraries.

Python version 2.7 or 3.5 - 3.7 is fine. You could try to run Linux in a VM, could be an option?

xaviergm commented 7 years ago

Yep, I'm looking at VirtualBox just now... what are the minimum requirements you'd recommend for this? Any distro in particular that would make the job easier than others?

Tigge commented 7 years ago

Nah, should be about the same. I prefer a Debian based distribution - but that's just me.