antfs-cli
antfs-cli copied to clipboard
Doesn't exit (libusb problem?)
Seems antfs-cli doesn't exit properly, even though it's done.
I get this:
Driver available: [<class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]
- Using: <class 'ant.base.driver.USB2Driver'>
Request basic information...
Capabilities: array('B', [8, 3, 0, 186, 54, 0])
Starting system...
Key done...
Searching...
Authenticating with Forerunner 610 (3832315541)
- Passkey: OK
Downloading 0 file(s)
libusb: warning [libusb_close] internal signalling write failed, closing anyway
Emphasis being on the last line. Stalls there. I get that this might be libusb's issue, not antfs-cli, but do you have any idea what might be done to fix it?
I haven't seen that error before. What version of libusb are you using?
1.0.19
What about pyusb?
Probably this issue I think: https://github.com/walac/pyusb/issues/66.
pyusb-1.0.0b2.
OK; thanks. I'll check into walac/pyusb#66. As with the reporter @ walac/pyusb#66, I'm also on python 3.4. So looks probable.
If I understood it correctly, the patch fixing walac/pyusb#66 had been merged into walac/pyusb master, but I'm having the same issue even though having built and installed the latter.
Hm yes, that is weird. if you run python
and do:
import usb
usb.__version__
That is the correct version? If it is finding the correct pyusb installation and this still occurs, I'm afraid I have no idea what is wrong.
Python 3.4.1 (default, Oct 12 2014, 18:28:05)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import usb
>>> usb.__version__
'1.0.0b2'
>>>
Trying to see if I might get help from project walac/pyusb.
@Walac asked for a test script to reproduce the issue (over at pyusb#66). I haven't dabbled in Python before, so instead of trying to scrape your code for tidbits which might make up a test script reproducing this issue, I'll ask you first. Would it be possible for you @Tigge to make some minimal script which should(n't) lead to the error message above @ comment 61684472?
I think you are using the version built from master you should have version 1.0.0.rc1
of pyusb I think. Perhaps you have a conflict between a version installed by your package manager and the one you installed manually (or with pip or so)?
I had none installed through package manager (portage). When trying to fix this, I installed something that looked related through pip. Removed that now.
$ python
Python 3.4.1 (default, Oct 12 2014, 18:28:05)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import usb
>>> usb.__version__
'1.0.0rc1'
>>>
But, alas,
$ antfs-cli
Driver available: [<class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]
- Using: <class 'ant.base.driver.USB2Driver'>
Request basic information...
Capabilities: array('B', [8, 3, 0, 186, 54, 0])
Starting system...
Key done...
Searching...
Authenticating with Forerunner 610 (3832315541)
- Passkey: OK
Downloading 0 file(s)
libusb: warning [libusb_close] internal signalling write failed, closing anyway