vpelletier / python-libusb1

Python ctype-based wrapper around libusb1
GNU Lesser General Public License v2.1
174 stars 67 forks source link

AttributeError: 'int' object has no attribute 'value' in function iterISO #24

Closed Adesin-fr closed 7 years ago

Adesin-fr commented 7 years ago

I have a problem while trying to make an ISOCHRONOUS transfert. I have two computers (work and home), and it did worked at work. I've just reinstalled my home computer with ubuntu 16.04, and python-libusb1 is installed from last source.

I've got the following error, which refers to this part of code : AttributeError: 'int' object has no attribute 'value'

Code : (line 694 of usb.py ) : buffer_position = transfer.buffer.value I can't figure out what I've done bad ! ;)

Thanks for you help !

vpelletier commented 7 years ago

Indeed, this is a regression in 1.6, thanks for the report and sorry for the regression.

Could you test latest master ? It should be fixed there, and I added a test (which did reproduce the exception).

Adesin-fr commented 7 years ago

Hi ! Fast fix :) I did tried with my work PC before updating : I was in 1.5.2. I did upgrade from master, and the error is gone.

The fix is ok !

vpelletier commented 7 years ago

Thanks for testing and reporting, I just released 1.6.1 on pypi.