getting started

767 views
Skip to first unread message

Matt Blessinger

unread,
Nov 10, 2012, 1:06:14 PM11/10/12
to python-ant-...@googlegroups.com
Hello all,

I'm really glad I found this group since I have a Garmin HRM and speed & cadence sensor. In the end, what I want to do is display my speed, cadence, heart rate, and power output on my bike trainer; I have the Kinetic Road Machine, so there is a calibration for power vs. speed.

Right now I'm having issues getting the demos to work. I don't have a background in programming besides Matlab. I've been playing around with Python in my free time, but for the most part I am completely new to this.

I'm running Windows 7 64 bit with 32 bit Python 2.7.3 installed. I installed python-setuptools as well as minGW32 as the compiler since Windows 7 has compiler issues due to the newer framework. I downloaded the files from https://github.com/mvillalba/python-ant and ran "python setup.py install" from that directory. I didn't throw any errors during the install, so it looked fine to me, but when I run config.py I get the following error.


C:\Users\Matt\Desktop\python-ant-develop\demos\ant.core>python config.py
Traceback (most recent call last):
  File "config.py", line 15, in <module>
    LOG = log.LogWriter()
  File "C:\Python27\lib\site-packages\ant-develop-py2.7.egg\ant\core\log.py", li
ne 78, in __init__
    self.open(filename)
  File "C:\Python27\lib\site-packages\ant-develop-py2.7.egg\ant\core\log.py", li
ne 92, in open
    self.fd = open(filename, 'w')
IOError: [Errno 22] invalid mode ('w') or filename: '2012-11-10T12:05:03.615000.
ant'


Does anyone have an idea as to what the problem is? Thank you in advance.

-Matt

Matt Blessinger

unread,
Nov 10, 2012, 1:08:44 PM11/10/12
to python-ant-...@googlegroups.com
I should also mention I have the Garmin USB2 Wireless USB Stick

Jon Allsop

unread,
Sep 25, 2014, 9:02:07 AM9/25/14
to python-ant-...@googlegroups.com
Bit of a late reply..but just wondering if you got to the bottom of this issue?? I'm having exactly the same problem

Kevin Johnson

unread,
Oct 15, 2015, 1:37:33 PM10/15/15
to Python ANT+ Open Source
I know this from a terribly long time ago but I looking to do exactly what you said, same exact equipment as well...did you ever have any luck with it?

Smokey M

unread,
Feb 8, 2016, 12:30:04 AM2/8/16
to Python ANT+ Open Source
I'm trying to get python-ant working on windows as well.  I'm not having a lot of luck compiling the C files.  I finally got the vcvarsall.bat error fixed by manually pointing python to the file in the msvc9compiler.py file, but now I'm getting over 100 C compile errors and it kicks out.

To the OP's error, IOError: [Errno 22] invalid mode ('w') or filename: '2012-11-10T12:05:03.615000.
I'm not 100% sure, but it looks like it's trying to put a ":" in the file name which is not allowed in windows.

Rob Jordan

unread,
Feb 8, 2016, 8:12:44 AM2/8/16
to python-ant-...@googlegroups.com
Hi Mr Smokey...
As I remember I just turned off the log file creation and deleted the line of code that was calling for the log.
Sorry if this isn't much help.  It's ages since I used this as my new laptop doesn't seem to see the USB doggle.

thanks,Rob

--
You received this message because you are subscribed to the Google Groups "Python ANT+ Open Source" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-ant-open-s...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages