antfs-cli icon indicating copy to clipboard operation
antfs-cli copied to clipboard

Doesn't exit (libusb problem?)

Open krissen opened this issue 9 years ago • 11 comments

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?

krissen avatar Mar 14 '15 19:03 krissen

I haven't seen that error before. What version of libusb are you using?

Tigge avatar Mar 14 '15 19:03 Tigge

1.0.19

krissen avatar Mar 14 '15 19:03 krissen

What about pyusb?

Tigge avatar Mar 14 '15 19:03 Tigge

Probably this issue I think: https://github.com/walac/pyusb/issues/66.

Tigge avatar Mar 14 '15 19:03 Tigge

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.

krissen avatar Mar 14 '15 19:03 krissen

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.

krissen avatar Mar 14 '15 19:03 krissen

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.

Tigge avatar Mar 18 '15 22:03 Tigge

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.

krissen avatar Mar 22 '15 11:03 krissen

@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?

krissen avatar Mar 22 '15 18:03 krissen

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)?

Tigge avatar Mar 22 '15 23:03 Tigge

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

krissen avatar Mar 23 '15 18:03 krissen