Skip to content
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

Doesn't exit (libusb problem?) #129

Open
krissen opened this issue Mar 14, 2015 · 11 comments
Open

Doesn't exit (libusb problem?) #129

krissen opened this issue Mar 14, 2015 · 11 comments

Comments

@krissen
Copy link

krissen commented Mar 14, 2015

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?

@Tigge
Copy link
Owner

Tigge commented Mar 14, 2015

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

@krissen
Copy link
Author

krissen commented Mar 14, 2015

1.0.19

@Tigge
Copy link
Owner

Tigge commented Mar 14, 2015

What about pyusb?

@Tigge
Copy link
Owner

Tigge commented Mar 14, 2015

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

@krissen
Copy link
Author

krissen commented Mar 14, 2015

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
Copy link
Author

krissen commented Mar 14, 2015

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.

@Tigge
Copy link
Owner

Tigge commented Mar 18, 2015

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.

@krissen
Copy link
Author

krissen commented Mar 22, 2015

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
Copy link
Author

krissen commented Mar 22, 2015

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

@Tigge
Copy link
Owner

Tigge commented Mar 22, 2015

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

@krissen
Copy link
Author

krissen commented Mar 23, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants