Python gives errors on even the most basic script

I thought i’d try to use python to control a blinkstick flex, but even the sample code is throwing errors for me and I can’t for the life of my work it out.

I’m attempting to run:

"from blinkstick import blinkstick

bstick = blinkstick.find_first()

bstick.set_color(channel=0, index=12, name=“red”)"

and it throw these errors in idle:

“Traceback (most recent call last):
File “E:\Documents\Aidan’s\Python Scripts\LED\blinkstick v1.py”, line 5, in
bstick.set_color(channel=0, index=12, name=“red”)
File “D:\Users\Aidan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\blinkstick\blinkstick.py”, line 341, in set_color
self._usb_ctrl_transfer(0x20, 0x9, report_id, 0, control_string)
File “D:\Users\Aidan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\blinkstick\blinkstick.py”, line 226, in _usb_ctrl_transfer
data = (c_ubyte * len(data_or_wLength))([c_ubyte(ord©) for c in data_or_wLength])
File “D:\Users\Aidan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\blinkstick\blinkstick.py”, line 226, in
data = (c_ubyte * len(data_or_wLength))(
[c_ubyte(ord©) for c in data_or_wLength])
TypeError: ord() expected string of length 1, but int found”

Any ideas? Am I missing something? I have installed blinkstick module as when I type “import blinkstick” I don’t get any errors.

Thanks

I just installed python 2 and its working now. Wasn’t aware it was python 2 only! how do i delete this thread?

You cannot delete the thread, but it´s good for documentation for the next one searching for this kind of problem.