Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No bs_serial?
#1
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'
Reply
#2
Looks like a bug in the package. I would contact the maintainers (bottom of the PyPI page).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020