# BlinkStick Pro Python code error

**URL:** <https://forums.blinkstick.com/t/blinkstick-pro-python-code-error/290>\
**Category:** Support\
**Created:** [November 17, 2015, 10:56pm UTC](https://forums.blinkstick.com/t/blinkstick-pro-python-code-error/290 "2015-11-17T22:56:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jugimon](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/j/0ea827/32.png) [@jugimon](https://forums.blinkstick.com/u/jugimon)\
**Post date:** [November 17, 2015, 10:56pm UTC](https://forums.blinkstick.com/t/blinkstick-pro-python-code-error/290/1 "2015-11-17T22:56:57Z")

</div>

I tried to use my WS2821B led strip with python and BlinkStick Pro. I was able to once configure BlinkStick successfully but second time i tried the same commands (.set\_mode() and .set\_color()) this comes up:

> Python 2.7.10 (default, [date and time]) [MSC v.1500 32 bit (Intel)] on win32  
> Type “help”, “copyright”, “credits” or “license” for more information.  
> from blinkstick import blinkstick  
> led = blinkstick.find\_first()  
> led.set\_mode(2)  
> Traceback (most recent call last):  
> File “(stdin)”, line 1, in (module)  
> AttributeError: ‘NoneType’ object has no attribute ‘set\_mode’

---

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [November 18, 2015, 7:51am UTC](https://forums.blinkstick.com/t/blinkstick-pro-python-code-error/290/2 "2015-11-18T07:51:21Z")

</div>

For me it looks like that the find\_first fails. So you´ve got “none” and “none” has no attribut. First of all I would try to replug the device.

---

<div class="post-metadata">

**Author:** ![jugimon](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/j/0ea827/32.png) [@jugimon](https://forums.blinkstick.com/u/jugimon)\
**Post date:** [November 18, 2015, 10:21am UTC](https://forums.blinkstick.com/t/blinkstick-pro-python-code-error/290/3 "2015-11-18T10:21:44Z")

</div>

Yep, the problem was that my computer didn’t recognize BlinkStick for some reason, but now it works perfeclty!
