Python Forum

Full Version: No bs_serial?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm randomly getting an error which means nothing to me at all, could someone please let me know what it means?

Many thanks.

for b in bstick.find_all():
File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 1497, in find_all
result.extend([BlinkStick(device=d)])
File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 209, in __init__
self.bs_serial = self.get_serial()
File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 272, in get_serial
return self._usb_get_string(self.device, 256, 3)
File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 218, in _usb_get_string
if self._refresh_device():
File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 249, in _refresh_device
d = find_by_serial(self.bs_serial)
AttributeError: 'BlinkStick' object has no attribute 'bs_serial'
Looks like a bug in the package. I would contact the maintainers (bottom of the PyPI page).