Yes that worked! ..it did produce an error message l:
Traceback (recent call last)
File (“DotStarPiPainter.py” line 230, in <module>
If b == 1 and lightpaint != none:
File (“DotStarPiPainter.py” line 110, in sigusr1_handler scandir(1)
File (“DotStarPiPainter.py” line 142, in scandir lightpaint = loadImage(imgNum) # Load first image
File (“DotStarPiPainter.py” line 168, in loadimage pixels = img.tostring()
File “user/lib/python2.7/dust-packages/PIL/Images.py”, line 697, in tostring “Please call tobytes() instead.”)
NotimplementedError: tostring() has been removed. Please call tobytes() instead.
Pi painter
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Pi painter
Code's been updated on Github. You can get the latest by first deleting the current DotStarPiPainter directory and redoing the git clone step:
git clone https://github.com/adafruit/DotStarPiPainter
git clone https://github.com/adafruit/DotStarPiPainter
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Pi painter
And guide's been updated with the systemd edit stuff. Thanks for your patience!
- tjdowd
- Posts: 5
- Joined: Mon Feb 19, 2018 4:38 pm
Re: Pi painter
Success! Thank you very much for the prompt attention to this bug - hope it smooths things out for others working on this project. On to the next step - making it headless! Stay tuned
-
- Posts: 5
- Joined: Mon Jun 02, 2014 6:15 pm
Re: Pi painter
I followed the instructions regarding "brg" and "gbr" I used an image with 6 parallel colors and both did not present the approximate results of the true colors, it was then that I did some tests in the exchange of the letters "brg" and only changing in line 56 with "brg" I got approximate colors, I send a picture of the results. I have not tested with a real image yet, then I'll test it more deeply.
Thank you
Thank you
- Attachments
-
- test.jpg (36.21 KiB) Viewed 4920 times
- tjdowd
- Posts: 5
- Joined: Mon Feb 19, 2018 4:38 pm
Re: Pi painter
Is it possible to use a LED strip that has only a data line, no clock line? I'm looking at our strip and only see a 3 pin connection..its a beilai 1m 144 light...
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Pi painter
Not as a drop-in replacement, no. The code is pretty tightly written around DotStar strips fast refresh speed.tjdowd wrote:Is it possible to use a LED strip that has only a data line, no clock line? I'm looking at our strip and only see a 3 pin connection..its a beilai 1m 144 light...
- bealzabozo
- Posts: 2
- Joined: Mon Mar 12, 2018 12:29 am
Re: Pi painter
I'm in the set up the pi stage of the instructions and when I type in sudo DotStarPiPainter.py I get an error saying python: can't open file 'DotStarPiPainter.py': [Errno 2] No such file or directory
If I open the DotStarPiPainter folder and run DotStarPiPainter.py by clicking on it I get an error
>>> %cd /home/pi/DotStarPiPainter
>>> %Run DotStarPiPainter.py
File "/home/pi/DotStarPiPainter/DotStarPiPainter.py", line 102
print 'Using mouse for positional input'
^
SyntaxError: Missing parentheses in call to 'print'
If I open the DotStarPiPainter folder and run DotStarPiPainter.py by clicking on it I get an error
>>> %cd /home/pi/DotStarPiPainter
>>> %Run DotStarPiPainter.py
File "/home/pi/DotStarPiPainter/DotStarPiPainter.py", line 102
print 'Using mouse for positional input'
^
SyntaxError: Missing parentheses in call to 'print'
- bealzabozo
- Posts: 2
- Joined: Mon Mar 12, 2018 12:29 am
Re: Pi painter
Does anyone have any idea what the problem could be? I'm trying to use this for a project in a photography class and I don't know much about linux
bealzabozo wrote:I'm in the set up the pi stage of the instructions and when I type in sudo DotStarPiPainter.py I get an error saying python: can't open file 'DotStarPiPainter.py': [Errno 2] No such file or directory
If I open the DotStarPiPainter folder and run DotStarPiPainter.py by clicking on it I get an error
>>> %cd /home/pi/DotStarPiPainter
>>> %Run DotStarPiPainter.py
File "/home/pi/DotStarPiPainter/DotStarPiPainter.py", line 102
print 'Using mouse for positional input'
^
SyntaxError: Missing parentheses in call to 'print'
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Pi painter
Is your system using Python 3 by default? The code as written might only work with Python 2.7. You can check with:
(upper case V)
Also, it really should be run from the command line, e.g.:
Code: Select all
python -V
Also, it really should be run from the command line, e.g.:
Code: Select all
sudo python DotStarPiPainter.py
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Pi painter
If your system does use Python 3 by default, you can run the script in earlier Python by using:
Code: Select all
sudo python2.7 DotStarPiPainter.py
Please be positive and constructive with your questions and comments.