You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following error will be thrown while executing the 2nd with:
Traceback (most recent call last):
File "bug_blink2.py", line 9, in <module>
b1.fade_to_color(100, 'pink')
File "/Users/Vej/.virtualenvs/nb/lib/python3.5/site-packages/blink1/blink1.py", line 179, in fade_to_color
return self.fade_to_rgb(fade_milliseconds, red, green, blue)
File "/Users/Vej/.virtualenvs/nb/lib/python3.5/site-packages/blink1/blink1.py", line 152, in fade_to_rgb
return self.fade_to_rgb_uncorrected(fade_milliseconds, r, g, b, led_number)
File "/Users/Vej/.virtualenvs/nb/lib/python3.5/site-packages/blink1/blink1.py", line 148, in fade_to_rgb_uncorrected
self.write( buf )
File "/Users/Vej/.virtualenvs/nb/lib/python3.5/site-packages/blink1/blink1.py", line 127, in write
self.dev.send_feature_report(buf)
AttributeError: 'NoneType' object has no attribute 'send_feature_report'
I also tried two various versions, both got the same error on the 2nd call:
It seems that the close method of the first Blink1() didn't release the device which made the second Blink1() fail to find the blink(1) while initializing.
About my environment, I have one blink(1) mk connected to my Mac ---
Darwin VM.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64
Python Version ---
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
This issue is easy to reproduce --- with a little change to the demo usage like this:
Following error will be thrown while executing the 2nd
with
:I also tried two various versions, both got the same error on the 2nd call:
Version1:
Version2:
It seems that the
close
method of the firstBlink1()
didn't release the device which made the secondBlink1()
fail tofind
the blink(1) while initializing.About my environment, I have one blink(1) mk connected to my Mac ---
Python Version ---
Python packages (i.e. output of
pip freeze
)---Please fix this, thanks!
The text was updated successfully, but these errors were encountered: