-
Notifications
You must be signed in to change notification settings - Fork 44
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
Error on first run #19
Comments
I'll try to take a look at root cause. In the meantime, try a simple workaround. The failing code is just trying Create the config file ~/.antd/antd.cfg You can find file contents here. Drop me a quick note reporting success or failure. Regards
|
That sort of worked. I had to grab that antd.cfg a commit behind master (it seems that the version that ant-downloader on pypi expects is a commit behind). I'm hitting other problems now though with it not connecting to my 405 to download data. I'm happy to open another issue if you like, otherwise here's the output: [MainThread] 2012-04-19 14:43:17,599 DEBUG Executing Command. RESET_SYSTEM() |
Can you try running the version in branch 'ioerror'? Also what steps did you take to install dependencies: Regards, |
My install steps:
The pyusb came from pypi, it's in /usr/local/lib/pyusb-1.0.0_a1-py2.7.egg I have two libusb packages on the system, here's the two versions: I am running Ubuntu 12.04. Running the ioerror branch is did manage to request a pairing and download [MainThread] 2012-04-19 15:14:34,290 WARNING Failed to cleanup resources on On Thu, Apr 19, 2012 at 15:02, Braiden Kindt <
|
Thanks for feedback. You can ignore error at end with ioerror branch. Looks like this is same I'll try to install 12.04 and replicate issue so I can cleanup / merge Regards,
|
Not sure if its because I'm using the antd.cfg from master branch, but I get this when I manually copy into my ~/.antd/ dir (seems like the same error):
And a new file seems to be touched: |
I get the same error on 12.04 -- from a fresh install |
In case you missed solution above: Create the config file ~/.antd/antd.cfg Sorry, I haven't fixed root cause yet. I'll try to look at it soon. |
@braiden, thanks for the quick response. if i replace with that file, I get the same error:
Here are my usb devices:
Since, I need 0fcf:1004, I change the antd.cnf to 1004 and get:
Any help greatly appreciated. |
There are at least two versions of USB ANT stick I'm aware of: 0x1004: contains an internal usb-to-serial adapter, and linux sees as I've only more recently added support for serial devices (0x1004) so make Also, make sure you have the python-serial package installed. Hope that helps. On Sun, Dec 23, 2012 at 1:45 PM, Tim Booher [email protected]:
|
Also, you'll get a warning when starting program... it should fail to [MainThread] 2012-12-23 14:07:11,773 WARNING Failed to find Garmin If you get something about "device/interface claimed", you need to set On Sun, Dec 23, 2012 at 2:04 PM, Braiden Kindt [email protected] wrote:
|
Excellent. Thank you for your help. It works very well. |
same error as @jzacsh |
Same problems for me :
I've resolved all my issues by removing the PyPi package and then reinstall form the last git version. Could we expect to get a freshly packaged version for PiPy ? I would like to thanks Braiden for the job, that software works better than the previous i tried to used (garmin-ant-downloader). |
W/ ubuntu 12.04. After getting past https://bugs.launchpad.net/ubuntu/+source/distribute/+bug/958550 , run into this on first run.
Traceback (most recent call last):
File "/usr/local/bin/ant-downloader", line 9, in
load_entry_point('python-ant-downloader==12.03.21', 'console_scripts', 'ant-downloader')()
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/main.py", line 57, in downloader
if not antd.cfg.read(cfg):
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 56, in read
write_default_config(file)
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 49, in write_default_config
file.write(pkg_resources.resource_string(name, "antd.cfg"))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 916, in resource_string
self, resource_name
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1189, in get_resource_string
return self._get(self._fn(self.module_path, resource_name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1316, in _get
stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antd.cfg'
The text was updated successfully, but these errors were encountered: