[Python-modules-team] Bug#819323: python3-usb: TypeError: 'NoneType' object is not callable

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Mar 26 17:10:19 UTC 2016


Package: python3-usb
Version: 1.0.0~b2-2
Severity: normal

Dear maintainer,

running

#!/usr/bin/python3
import usb.core
import usb.util
import sys
ret = list(usb.core.find(find_all=True, idVendor=0x04b4, idProduct=0xfd13))
sys.exit()

leads to error

Exception ignored in: <bound method Device.__del__ of <DEVICE ID
04b4:fd13 on Bus 001 Address 004>>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1029, in __del__
  File "/usr/lib/python3/dist-packages/usb/core.py", line 225, in dispose
  File "/usr/lib/python3/dist-packages/usb/core.py", line 220, in
release_all_interfaces
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method _Device.__del__ of
<usb.backend.libusb1._Device object at 0xb68e0db0>>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line
561, in __del__
AttributeError: 'NoneType' object has no attribute 'libusb_unref_device'
Exception ignored in: <bound method Device.__del__ of <DEVICE ID
04b4:fd13 on Bus 001 Address 005>>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1029, in __del__
  File "/usr/lib/python3/dist-packages/usb/core.py", line 225, in dispose
  File "/usr/lib/python3/dist-packages/usb/core.py", line 220, in
release_all_interfaces
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method _Device.__del__ of
<usb.backend.libusb1._Device object at 0xb68e0d30>>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line
561, in __del__
AttributeError: 'NoneType' object has no attribute 'libusb_unref_device'


The error does not occur with the head of the git repository
https://github.com/walac/pyusb

Please, package pyusb-1.0.0rc1 or later.

Best regards

Heinrich Schuchardt



More information about the Python-modules-team mailing list