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

usbtmc error on Raspberry Pi 3 #36

Open
kaschneider opened this issue Aug 8, 2017 · 4 comments
Open

usbtmc error on Raspberry Pi 3 #36

kaschneider opened this issue Aug 8, 2017 · 4 comments

Comments

@kaschneider
Copy link

I am trying to install the usbtmc package on a Raspberry Pi 3. I extracted the package and used sudo python3 setup.py install in the terminal window to install, and it was successful. Now I am trying to run this bit of code:

import usbtmc
instr = usbtmc.Instrument(0x2a8d, 0x5c18)
print(instr.ask("*IDN?"))

I am receiving the error:

AttributeError: 'Endpoint' object has no attribute 'clear_halt'

So I think something might be wrong in the way I installed it? Any help is appreciated.

@alexforencich
Copy link
Contributor

What version of pyusb do you have installed?

@kaschneider
Copy link
Author

Here are the links from where I downloaded pyusb and libusb:
http://sourceforge.net/projects/pyusb/
http://www.libusb.org/wiki/libusb-win32
So I have pyusb 1.0.0

@alexforencich
Copy link
Contributor

Are you sure that you have 1.0.0 installed? What's the output of pip show pyusb?

@ainachara
Copy link

I have the same problem only in W7, not in Linux.
pyusb version 1.0.2

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

3 participants