python-ivi / python-usbtmc

Provides a USBTMC driver for controlling instruments over USB
MIT License
160 stars 69 forks source link

usbtmc error on Raspberry Pi 3 #36

Open kaschneider opened 7 years ago

kaschneider commented 7 years ago

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 commented 7 years ago

What version of pyusb do you have installed?

kaschneider commented 7 years ago

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 commented 7 years ago

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

ainachara commented 5 years ago

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