DotStar import error on Raspberry Pi

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jedm
 
Posts: 7
Joined: Mon Oct 21, 2013 4:29 pm

DotStar import error on Raspberry Pi

Post by jedm »

I'm pretty new to Raspberry Pi and Python.
I'm trying to get the strand test working, but it seems like I'm just having trouble with the code at this point.
I am using a RPi 3
I was able to get a different strand test to perform, and I got these strips to work with Arduino.
I apologize for the upside down images!
Thanks for any help.
Attachments
This is in dotstar.so
This is in dotstar.so
Unknown-2.jpeg (115 KiB) Viewed 514 times
When I run the strand test I get this
When I run the strand test I get this
Unknown-3.jpeg (115.34 KiB) Viewed 514 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: DotStar import error on Raspberry Pi

Post by adafruit_support_rick »

I think you're going to have to switch to using python 2.7.

User avatar
jedm
 
Posts: 7
Joined: Mon Oct 21, 2013 4:29 pm

Re: DotStar import error on Raspberry Pi

Post by jedm »

Thanks for your response!
I tried running it on Python 2.7.9 and this came back

Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>

Traceback (most recent call last):
File "/home/pi/Adafruit_DotStar_Pi/strandtest.py", line 28, in <module>
strip.begin() # Initialize pins for output
SystemError: error return without exception set
>>>

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: DotStar import error on Raspberry Pi

Post by adafruit_support_rick »

Can you try running it with sudo?

User avatar
jedm
 
Posts: 7
Joined: Mon Oct 21, 2013 4:29 pm

Re: DotStar import error on Raspberry Pi

Post by jedm »

Thanks for your help!
I had to change strip declaration since I am using SPI.
Thanks again!

User avatar
MonicaSPI
 
Posts: 12
Joined: Mon Jul 31, 2017 2:29 pm

Re: DotStar import error on Raspberry Pi

Post by MonicaSPI »

I am having the same error with no luck fixing it. What did you change the strip initialization to for SPI? I am trying by using GPIO 10 and 11, and just keep getting the same error.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: DotStar import error on Raspberry Pi

Post by pburgess »

The dotstar module doesn't play well with Python 3. The examples can be invoked by explicitly running them in Python 2, e.g.:

Code: Select all

sudo python2 strandtest.py

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”