Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xaviergm opened this issue Nov 25, 2016 · 6 comments
Open

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

xaviergm opened this issue Nov 25, 2016 · 6 comments

Comments

@xaviergm
Copy link

xaviergm commented Nov 25, 2016

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
Copy link
Owner

Tigge commented Nov 27, 2016

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
Copy link
Author

xaviergm commented Nov 28, 2016

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 😂 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
Copy link
Author

xaviergm commented Nov 28, 2016

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
Copy link
Owner

Tigge commented Nov 28, 2016

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
Copy link
Author

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
Copy link
Owner

Tigge commented Nov 30, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants