Closed superm1 closed 11 years ago
I'll try to take a look at root cause.
In the meantime, try a simple workaround. The failing code is just trying to install the default config file to your $HOME. Do this manually:
Create the config file ~/.antd/antd.cfg
You can find file contents here. https://github.com/braiden/python-ant-downloader/blob/master/antd/antd.cfg
Drop me a quick note reporting success or failure.
Regards On Apr 18, 2012 11:26 AM, "superm1" < reply@reply.github.com> wrote:
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'
Reply to this email directly or view it on GitHub: https://github.com/braiden/python-ant-downloader/issues/19
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() [MainThread] 2012-04-19 14:43:17,600 DEBUG SEND: a4014a00ef [Thread-1] 2012-04-19 14:43:17,604 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,604 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,613 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,613 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,613 DEBUG RECV: a40340000105e3 [Thread-1] 2012-04-19 14:43:17,614 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=5) [Thread-1] 2012-04-19 14:43:17,614 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,615 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,615 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,615 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,616 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,616 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,616 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,617 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,617 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,617 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,617 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,618 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,618 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,618 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,619 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,619 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,619 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,620 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,620 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,620 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,620 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,621 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,621 DEBUG RECV: a4094e00432400030100020084 [Thread-1] 2012-04-19 14:43:17,621 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C$\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,621 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,622 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,622 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,623 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,623 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,623 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,623 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,624 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,624 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,624 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,625 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,625 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,626 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,626 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,626 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,626 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,627 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,627 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,627 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,627 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,627 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,628 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,628 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,628 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,628 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,628 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,628 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,628 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,629 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,629 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,629 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,629 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,629 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,629 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,630 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,630 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,630 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,630 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,630 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,630 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,630 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,631 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,631 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,631 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,631 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,631 DEBUG RECV: a40340000108ee [Thread-1] 2012-04-19 14:43:17,631 WARNING Channel dropped to search do to too many dropped messages. channel_number=0 [Thread-1] 2012-04-19 14:43:17,631 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=8) [Thread-1] 2012-04-19 14:43:17,632 DEBUG RECV: a4094e00432900030100020089 [Thread-1] 2012-04-19 14:43:17,632 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C)\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,632 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,632 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,632 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,633 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,633 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,633 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,633 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,633 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,633 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,633 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,635 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,635 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,635 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,635 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,635 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,636 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,636 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,636 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,636 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,636 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,636 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,636 DEBUG RECV: a4094e00432900030100020089 [Thread-1] 2012-04-19 14:43:17,636 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C)\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,636 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,637 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,637 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,637 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,637 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,637 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,637 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,637 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,637 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,637 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,637 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,638 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,638 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,638 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,638 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,638 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,638 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,638 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,638 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,638 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,638 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,639 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,639 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,639 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,639 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,639 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,639 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,639 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,639 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,639 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,639 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,640 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,640 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,640 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,640 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,640 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,640 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,640 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,640 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,640 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,640 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,641 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,641 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,641 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,641 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,641 DEBUG RECV: a4094e00432900030100020089 [Thread-1] 2012-04-19 14:43:17,641 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C)\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,641 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,641 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,641 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,641 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,642 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,642 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,642 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,642 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,642 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,642 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,642 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,642 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,642 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,642 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,643 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,643 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,643 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,643 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,643 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,643 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,643 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,643 DEBUG RECV: a4094e00432900030100020089 [Thread-1] 2012-04-19 14:43:17,643 DEBUG Processing reply. RECV_BROADCAST_DATA(channel_number=0, data='C)\x00\x03\x01\x00\x02\x00') [Thread-1] 2012-04-19 14:43:17,643 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,644 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,644 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,647 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,647 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,647 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,760 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,761 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,761 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:17,885 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:17,886 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:17,886 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:18,010 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:18,011 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:18,011 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [Thread-1] 2012-04-19 14:43:18,135 DEBUG RECV: a40340000102e4 [Thread-1] 2012-04-19 14:43:18,136 WARNING Failed to receive RF beacon at expected period. channel_number=0 [Thread-1] 2012-04-19 14:43:18,136 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=1, msg_code=2) [MainThread] 2012-04-19 14:43:18,169 WARNING Retryable error. 5 try(s) remaining. No reply to command. RESET_SYSTEM() [MainThread] 2012-04-19 14:43:18,170 DEBUG SEND: a4014a00ef [Thread-1] 2012-04-19 14:43:18,172 DEBUG RECV: a4016f20ea [Thread-1] 2012-04-19 14:43:18,172 DEBUG Processing reply. STARTUP_MESSAGE(startup_message=32) [MainThread] 2012-04-19 14:43:18,176 DEBUG Executing Command. REQUEST_MESSAGE(channel_number=0, msg_id=84) [MainThread] 2012-04-19 14:43:18,177 DEBUG SEND: a4024d0054bf [Thread-1] 2012-04-19 14:43:18,178 DEBUG RECV: a40654080300ba360071 [Thread-1] 2012-04-19 14:43:18,179 DEBUG Processing reply. CAPABILITIES(max_channels=8, max_networks=3, standard_opts=0, advanced_opts1=186, advanced_opts2=54) [MainThread] 2012-04-19 14:43:18,179 DEBUG Executing Command. REQUEST_MESSAGE(channel_number=0, msg_id=62) [MainThread] 2012-04-19 14:43:18,180 DEBUG SEND: a4024d003ed5 [Thread-1] 2012-04-19 14:43:18,185 DEBUG RECV: a40b3e414a4b312e3034524146009f [Thread-1] 2012-04-19 14:43:18,186 DEBUG Processing reply. VERSION(ant_version='AJK1.04RAF\x00') [MainThread] 2012-04-19 14:43:18,190 DEBUG Executing Command. REQUEST_MESSAGE(channel_number=0, msg_id=97) [MainThread] 2012-04-19 14:43:18,190 DEBUG SEND: a4024d00618a [Thread-1] 2012-04-19 14:43:18,192 DEBUG RECV: a40461ea3c220035 [Thread-1] 2012-04-19 14:43:18,192 DEBUG Processing reply. SERIAL_NUMBER(serial_number=2243818) [MainThread] 2012-04-19 14:43:18,194 DEBUG Device Capabilities: CAPABILITIES(max_channels=8, max_networks=3, standard_opts=0, advanced_opts1=186, advanced_opts2=54) [MainThread] 2012-04-19 14:43:18,194 DEBUG Device ANT Version: VERSION(ant_version='AJK1.04RAF\x00') [MainThread] 2012-04-19 14:43:18,197 DEBUG Device SN#: SERIAL_NUMBER(serial_number=2243818) [MainThread] 2012-04-19 14:43:18,198 INFO Searching for ANT devices. [MainThread] 2012-04-19 14:43:18,198 DEBUG Executing Command. RESET_SYSTEM() [MainThread] 2012-04-19 14:43:18,198 DEBUG SEND: a4014a00ef [Thread-1] 2012-04-19 14:43:18,200 DEBUG RECV: a4016f20ea [Thread-1] 2012-04-19 14:43:18,200 DEBUG Processing reply. STARTUP_MESSAGE(startup_message=32) [MainThread] 2012-04-19 14:43:18,202 DEBUG Executing Command. SET_NETWORK_KEY(network_number=0, network_key='\xa8\xa4#\xb9\xf5^c\xc1') [MainThread] 2012-04-19 14:43:18,202 DEBUG SEND: a4094600a8a423b9f55e63c174 [Thread-1] 2012-04-19 14:43:18,204 DEBUG RECV: a40340004600a1 [Thread-1] 2012-04-19 14:43:18,204 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=70, msg_code=0) [MainThread] 2012-04-19 14:43:18,206 DEBUG Executing Command. ASSIGN_CHANNEL(channel_number=0, channel_type=0, network_number=0) [MainThread] 2012-04-19 14:43:18,206 DEBUG SEND: a40342000000e5 [Thread-1] 2012-04-19 14:43:18,208 DEBUG RECV: a40340004200a5 [Thread-1] 2012-04-19 14:43:18,208 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=66, msg_code=0) [MainThread] 2012-04-19 14:43:18,210 DEBUG Executing Command. SET_CHANNEL_ID(channel_number=0, device_number=0, device_type_id=0, trans_type=0) [MainThread] 2012-04-19 14:43:18,210 DEBUG SEND: a405510000000000f0 [Thread-1] 2012-04-19 14:43:18,212 DEBUG RECV: a40340005100b6 [Thread-1] 2012-04-19 14:43:18,212 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=81, msg_code=0) [MainThread] 2012-04-19 14:43:18,214 DEBUG Executing Command. SET_CHANNEL_PERIOD(channel_number=0, messaging_period=4096) [MainThread] 2012-04-19 14:43:18,215 DEBUG SEND: a40343000010f4 [Thread-1] 2012-04-19 14:43:18,216 DEBUG RECV: a40340004300a4 [Thread-1] 2012-04-19 14:43:18,216 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=67, msg_code=0) [MainThread] 2012-04-19 14:43:18,218 DEBUG Executing Command. SET_CHANNEL_SEARCH_TIMEOUT(channel_number=0, search_timeout=255) [MainThread] 2012-04-19 14:43:18,218 DEBUG SEND: a4024400ff1d [Thread-1] 2012-04-19 14:43:18,220 DEBUG RECV: a40340004400a3 [Thread-1] 2012-04-19 14:43:18,220 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=68, msg_code=0) [MainThread] 2012-04-19 14:43:18,222 DEBUG Executing Command. SET_CHANNEL_RF_FREQ(channel_number=0, rf_freq=50) [MainThread] 2012-04-19 14:43:18,222 DEBUG SEND: a402450032d1 [Thread-1] 2012-04-19 14:43:18,224 DEBUG RECV: a40340004500a2 [Thread-1] 2012-04-19 14:43:18,224 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=69, msg_code=0) [MainThread] 2012-04-19 14:43:18,226 DEBUG Executing Command. SET_SEARCH_WAVEFORM(channel_number=0, waveform=83) [MainThread] 2012-04-19 14:43:18,226 DEBUG SEND: a40349005300bd [Thread-1] 2012-04-19 14:43:18,228 DEBUG RECV: a40340004900ae [Thread-1] 2012-04-19 14:43:18,228 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=73, msg_code=0) [MainThread] 2012-04-19 14:43:18,231 DEBUG Executing Command. OPEN_CHANNEL(channel_number=0) [MainThread] 2012-04-19 14:43:18,231 DEBUG SEND: a4014b00ee [Thread-1] 2012-04-19 14:43:18,233 DEBUG RECV: a40340004b00ac [Thread-1] 2012-04-19 14:43:18,234 DEBUG Processing reply. CHANNEL_EVENT(channel_number=0, msg_id=75, msg_code=0) [MainThread] 2012-04-19 14:43:18,237 DEBUG Executing Command. ReadData(channel_number=0) [MainThread] 2012-04-19 14:43:18,240 DEBUG SEND: a4024d0052b9 [Thread-1] 2012-04-19 14:43:18,246 DEBUG RECV: a402520002f6 [Thread-1] 2012-04-19 14:43:18,246 DEBUG Processing reply. CHANNEL_STATUS(channel_number=0, channel_status=2) [Thread-1] 2012-04-19 14:43:18,749 ERROR Caught Exception handling message, session closing. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 777, in loop for cmd in self.core.recv(): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 505, in recv except IOError as (err, msg): ValueError: need more than 1 value to unpack [MainThread] 2012-04-19 14:43:19,242 WARNING Caught error while communicating with device, will retry. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/main.py", line 83, in downloader include_devices_with_no_data=args.force or not args.daemon) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 277, in search beacon = Beacon.unpack(self.channel.recv_broadcast(timeout=timeout - time.time())) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 862, in recv_broadcast return self._session._send(ReadData(self.channel_number, RecvBroadcastData), timeout=timeout).data File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 648, in _send raise AntError("Session closed.") AntError: Session closed. [MainThread] 2012-04-19 14:43:19,244 INFO Searching for ANT devices. [MainThread] 2012-04-19 14:43:19,245 DEBUG Executing Command. RESET_SYSTEM() [MainThread] 2012-04-19 14:43:19,246 WARNING Caught error while communicating with device, will retry. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/main.py", line 83, in downloader include_devices_with_no_data=args.force or not args.daemon) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 275, in search self._open_antfs_search_channel() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 411, in _open_antfs_search_channel self.ant_session.reset_system() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 566, in reset_system self._send(ResetSystem(), timeout=.5, retry=5) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 648, in _send raise AntError("Session closed.") AntError: Session closed. [MainThread] 2012-04-19 14:43:19,247 INFO Searching for ANT devices. [MainThread] 2012-04-19 14:43:19,247 DEBUG Executing Command. RESET_SYSTEM() [MainThread] 2012-04-19 14:43:19,247 WARNING Caught error while communicating with device, will retry. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/main.py", line 83, in downloader include_devices_with_no_data=args.force or not args.daemon) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 275, in search self._open_antfs_search_channel() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 411, in _open_antfs_search_channel self.ant_session.reset_system() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 566, in reset_system self._send(ResetSystem(), timeout=.5, retry=5) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 648, in _send raise AntError("Session closed.") AntError: Session closed. [MainThread] 2012-04-19 14:43:19,247 INFO Searching for ANT devices. [MainThread] 2012-04-19 14:43:19,247 DEBUG Executing Command. RESET_SYSTEM() [MainThread] 2012-04-19 14:43:19,248 WARNING Caught error while communicating with device, will retry. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/main.py", line 83, in downloader include_devices_with_no_data=args.force or not args.daemon) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 275, in search self._open_antfs_search_channel() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 411, in _open_antfs_search_channel self.ant_session.reset_system() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 566, in reset_system self._send(ResetSystem(), timeout=.5, retry=5) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 648, in _send raise AntError("Session closed.") AntError: Session closed. [MainThread] 2012-04-19 14:43:19,248 DEBUG SEND: a4094f004403000000000000a5 [MainThread] 2012-04-19 14:43:19,250 DEBUG Executing Command. RESET_SYSTEM() [MainThread] 2012-04-19 14:43:19,250 WARNING Failed to cleanup resources on exist. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/main.py", line 114, in downloader try: host.close() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/antfs.py", line 241, in close self.ant_session.close() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 554, in close self.reset_system() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 566, in reset_system self._send(ResetSystem(), timeout=.5, retry=5) File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 648, in _send raise AntError("Session closed.") AntError: Session closed.
Can you try running the version in branch 'ioerror'?
Also what steps did you take to install dependencies: Was pyusb installed from pypi? What verion of libusb1 is installed? You're running ubuntu 12.04?
Regards,
My install steps:
1) sudo apt-get install python python-setuptools libusb-1.0-0 python-lxml 2) sudo easy_install ez_setup 3) sudo easy_install python-ant-downloader
The pyusb came from pypi, it's in /usr/local/lib/pyusb-1.0.0_a1-py2.7.egg so i'm supposing it's a 1.0.0 snapshot.
I have two libusb packages on the system, here's the two versions: ii libusb-0.1-4 2:0.1.12-20 userspace USB programming library ii libusb-1.0-0 2:1.0.9~rc3-2 userspace USB programming library
I am running Ubuntu 12.04.
Running the ioerror branch is did manage to request a pairing and download some recent activity data. There was an error cleaning up though at the end:
[MainThread] 2012-04-19 15:14:34,290 WARNING Failed to cleanup resources on exist. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/main.py", line 115, in downloader try: host.close() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/antfs.py", line 241, in close self.ant_session.close() File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 568, in close assert not self.thread.is_alive() AssertionError [Thread-1] 2012-04-19 15:14:34,290 DEBUG IOError Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 506, in recv for msg in tokenize_message(self.hardware.read(timeout)): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/hw.py", line 70, in read return self.dev.read(self.ep | usb.util.ENDPOINT_IN, 16384, timeout=timeout) File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/core.py", line 637, in read self.get_timeout(timeout) File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/_debug.py", line 52, in do_trace return f(_args, *_named_args) File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/backend/libusb10.py", line 493, in bulk_read timeout) File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/backend/libusb10.py", line 593, in read timeout)) File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/backend/libusb10.py", line 357, in _check raise USBError(_str_error[retval.value]) USBError: No such device (it may have been disconnected) [Thread-1] 2012-04-19 15:14:34,295 ERROR Caught Exception handling message, session closing. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 787, in loop for cmd in self.core.recv(): File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 519, in recv else: raise e USBError: No such device (it may have been disconnected)
On Thu, Apr 19, 2012 at 15:02, Braiden Kindt < reply@reply.github.com
wrote:
Can you try running the version in branch 'ioerror'?
Also what steps did you take to install dependencies: Was pyusb installed from pypi? What verion of libusb1 is installed? You're running ubuntu 12.04?
Regards,
Mario Limonciello superm1@gmail.com
Thanks for feedback.
You can ignore error at end with ioerror branch. Looks like this is same issue as #11. Hopefully this branch brach is stable for you, but feel free to report any more issues.
I'll try to install 12.04 and replicate issue so I can cleanup / merge ioerror branch to master.
Regards, On Apr 19, 2012 4:16 PM, "superm1" < reply@reply.github.com> wrote:
My install steps:
1) sudo apt-get install python python-setuptools libusb-1.0-0 python-lxml 2) sudo easy_install ez_setup 3) sudo easy_install python-ant-downloader
The pyusb came from pypi, it's in /usr/local/lib/pyusb-1.0.0_a1-py2.7.egg so i'm supposing it's a 1.0.0 snapshot.
I have two libusb packages on the system, here's the two versions: ii libusb-0.1-4 2:0.1.12-20 userspace USB programming library ii libusb-1.0-0 2:1.0.9~rc3-2 userspace USB programming library
I am running Ubuntu 12.04.
Running the ioerror branch is did manage to request a pairing and download some recent activity data. There was an error cleaning up though at the end:
[MainThread] 2012-04-19 15:14:34,290 WARNING Failed to cleanup resources on exist. Traceback (most recent call last): File
"/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/main.py", line 115, in downloader try: host.close() File
"/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/antfs.py", line 241, in close self.ant_session.close() File
"/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 568, in close assert not self.thread.is_alive() AssertionError [Thread-1] 2012-04-19 15:14:34,290 DEBUG IOError Traceback (most recent call last): File
"/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 506, in recv for msg in tokenize_message(self.hardware.read(timeout)): File
"/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/hw.py", line 70, in read return self.dev.read(self.ep | usb.util.ENDPOINT_IN, 16384, timeout=timeout) File
"/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/core.py", line 637, in read self.__get_timeout(timeout) File
"/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/_debug.py", line 52, in do_trace return f(_args, *_named_args) File
"/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/backend/libusb10.py", line 493, in bulk_read timeout) File
"/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/backend/libusb10.py", line 593, in __read timeout)) File
"/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0_a1-py2.7.egg/usb/backend/libusb10.py", line 357, in _check raise USBError(_str_error[retval.value]) USBError: No such device (it may have been disconnected) [Thread-1] 2012-04-19 15:14:34,295 ERROR Caught Exception handling message, session closing. Traceback (most recent call last): File
"/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 787, in loop for cmd in self.core.recv(): File
"/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.25-py2.7.egg/antd/ant.py", line 519, in recv else: raise e USBError: No such device (it may have been disconnected)
On Thu, Apr 19, 2012 at 15:02, Braiden Kindt < reply@reply.github.com
wrote:
Can you try running the version in branch 'ioerror'?
Also what steps did you take to install dependencies: Was pyusb installed from pypi? What verion of libusb1 is installed? You're running ubuntu 12.04?
Regards,
Mario Limonciello superm1@gmail.com
Reply to this email directly or view it on GitHub:
https://github.com/braiden/python-ant-downloader/issues/19#issuecomment-5230957
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):
Traceback (most recent call last):
File "/usr/local/bin/ant-downloader", line 9, in <module>
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 67, in read
write_default_config(new_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'
And a new file seems to be touched: ~/.antd/antd.cfg.1
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 You can find file contents here: https://github.com/braiden/python-ant-downloader/blob/master/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:
sudo ant-downloader -v
[MainThread] 2012-12-23 13:41:11,852 WARNING Config file version does not match expected version (1).
[MainThread] 2012-12-23 13:41:11,852 WARNING If you have issues recommended you replace your configuration with /home/bonhoeffer/.antd/antd.cfg.1
[MainThread] 2012-12-23 13:41:11,852 WARNING Set [antd] version=1 in your current config file to disable this warning.
Traceback (most recent call last):
File "/usr/local/bin/ant-downloader", line 9, in <module>
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 73, in downloader
host = antd.cfg.create_antfs_host()
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 112, in create_antfs_host
host = antfs.Host(create_ant_session(), keys)
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 99, in create_ant_session
session = ant.Session(create_ant_core())
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 95, in create_ant_core
return ant.Core(create_hardware())
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 91, in create_hardware
return hw.UsbHardware(id_vendor, id_product, bulk_endpoint)
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/hw.py", line 59, in __init__
raise IOError(errno.ENOENT, "No availbile device matching vid(0x%04x) pid(0x%04x)." % (id_vendor, id_product))
IOError: [Errno 2] No availbile device matching vid(0x0fcf) pid(0x1008).
Here are my usb devices:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 005: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Bus 001 Device 006: ID 0fcf:1004 Dynastream Innovations, Inc.
Bus 001 Device 007: ID 04e6:5116 SCM Microsystems, Inc. SCR331-LC1 / SCR3310 SmartCard Reader
Since, I need 0fcf:1004, I change the antd.cnf to 1004 and get:
[MainThread] 2012-12-23 13:44:40,877 WARNING Config file version does not match expected version (1).
[MainThread] 2012-12-23 13:44:40,877 WARNING If you have issues recommended you replace your configuration with /home/bonhoeffer/.antd/antd.cfg.1
[MainThread] 2012-12-23 13:44:40,877 WARNING Set [antd] version=1 in your current config file to disable this warning.
[MainThread] 2012-12-23 13:44:40,887 INFO Found device with vid(0x0fcf) pid(0x1004), but interface already claimed.
Traceback (most recent call last):
File "/usr/local/bin/ant-downloader", line 9, in <module>
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 73, in downloader
host = antd.cfg.create_antfs_host()
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 112, in create_antfs_host
host = antfs.Host(create_ant_session(), keys)
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 99, in create_ant_session
session = ant.Session(create_ant_core())
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 95, in create_ant_core
return ant.Core(create_hardware())
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/cfg.py", line 91, in create_hardware
return hw.UsbHardware(id_vendor, id_product, bulk_endpoint)
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/hw.py", line 59, in __init__
raise IOError(errno.ENOENT, "No availbile device matching vid(0x%04x) pid(0x%04x)." % (id_vendor, id_product))
IOError: [Errno 2] No availbile device matching vid(0x0fcf) pid(0x1004).
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 /dev/ttyUSB[0-9] 0x1008: has no usb-to-serial adapter and and is accessed directly via libusb.
I've only more recently added support for serial devices (0x1004) so make sure you have the latest code from github (rather than pypi). You shouldn't change id_product/id_vendor in config file, just update serial_device if necessary. If you tail /var/log/syslog when your usb stick is attached device path should be printed.
Also, make sure you have the python-serial package installed.
Hope that helps.
On Sun, Dec 23, 2012 at 1:45 PM, Tim Booher notifications@github.comwrote:
Bus 001 Device 005: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Also, you'll get a warning when starting program... it should fail to find 0x1008, and then fall back on serial:
[MainThread] 2012-12-23 14:07:11,773 WARNING Failed to find Garmin nRF24AP2 (newer) USB Stick. Traceback (most recent call last): File "/home/braiden/opt/python-ant-downloader/antd/cfg.py", line 92, in create_hardware return hw.UsbHardware(id_vendor, id_product, bulk_endpoint) File "/home/braiden/opt/python-ant-downloader/antd/hw.py", line 61, in init raise NoUsbHardwareFound(errno.ENOENT, "No available device matching vid(0x%04x) pid(0x%04x)." % (id_vendor, id_product)) NoUsbHardwareFound: [Errno 2] No available device matching vid(0x0fcf) pid(0x1008). [MainThread] 2012-12-23 14:07:11,778 WARNING Looking for nRF24AP1 (older) Serial USB Stick. [MainThread] 2012-12-23 14:07:12,822 INFO Searching for ANT devices.
If you get something about "device/interface claimed", you need to set config back to 1008. The raw USB device (1004) is already claimed by the kernel, so shouldn't be tried to open directly by my app.
On Sun, Dec 23, 2012 at 2:04 PM, Braiden Kindt braiden@braiden.org wrote:
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 /dev/ttyUSB[0-9] 0x1008: has no usb-to-serial adapter and and is accessed directly via libusb.
I've only more recently added support for serial devices (0x1004) so make sure you have the latest code from github (rather than pypi). You shouldn't change id_product/id_vendor in config file, just update serial_device if necessary. If you tail /var/log/syslog when your usb stick is attached device path should be printed.
Also, make sure you have the python-serial package installed.
Hope that helps.
On Sun, Dec 23, 2012 at 1:45 PM, Tim Booher notifications@github.com wrote:
Bus 001 Device 005: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Excellent. Thank you for your help. It works very well.
same error as @jzacsh
i tried ant-downloader -c ~/.antd/antd.cfg
but get an new error:
Traceback (most recent call last): File "/usr/local/bin/ant-downloader", line 9, in <module> 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 57, in read read = _cfg.read([file]) File "/usr/lib/python2.7/ConfigParser.py", line 302, in read fp = open(filename) TypeError: coercing to Unicode: need string or buffer, file found
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). The auto-upload to connect.garmin.com is really appreciated :+1:
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'