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.
DotStar import error on Raspberry Pi
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jedm
- Posts: 7
- Joined: Mon Oct 21, 2013 4:29 pm
DotStar import error on Raspberry Pi
- Attachments
-
- This is in dotstar.so
- Unknown-2.jpeg (115 KiB) Viewed 514 times
-
- When I run the strand test I get this
- Unknown-3.jpeg (115.34 KiB) Viewed 514 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: DotStar import error on Raspberry Pi
I think you're going to have to switch to using python 2.7.
- jedm
- Posts: 7
- Joined: Mon Oct 21, 2013 4:29 pm
Re: DotStar import error on Raspberry Pi
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
>>>
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
>>>
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: DotStar import error on Raspberry Pi
Can you try running it with sudo?
- jedm
- Posts: 7
- Joined: Mon Oct 21, 2013 4:29 pm
Re: DotStar import error on Raspberry Pi
Thanks for your help!
I had to change strip declaration since I am using SPI.
Thanks again!
I had to change strip declaration since I am using SPI.
Thanks again!
- MonicaSPI
- Posts: 12
- Joined: Mon Jul 31, 2017 2:29 pm
Re: DotStar import error on Raspberry Pi
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.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: DotStar import error on Raspberry Pi
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
Please be positive and constructive with your questions and comments.