DotStarPiPainter help please

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.
User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

DotStarPiPainter help please

Post by jaimedog »

Trying to set up a rpi 4 model b for use with DotStarPiPainter. When I try the dry run I get this error message: undefined symbol __pow_infinite. Have re-compiled lightpaint.so using "make" as suggested with no luck. Looking for help please.

User avatar
adafruit_support_carter
 
Posts: 29473
Joined: Tue Nov 29, 2016 2:45 pm

Re: DotStarPiPainter help please

Post by adafruit_support_carter »

This is the dry run test you are trying?
https://learn.adafruit.com/dotstar-pi-p ... 1540037-20

If so, can you post the complete text of the error message you get when running the test.

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

Thanks for responding.

When trying to run DotStarPiPainter.py, I get:

Traceback (most recent call last):
File "/DotStarPiPainter.py", Line 48, in <module>
from lightpaint import LightPaint
ImportError: /DotStarPiPainter/lightpaint.so: undefined symbol: __pow_finite

The "Dry Run" poster mentioned:
If it complains about the lightpaint.so file, you may need to recompile that (type “make” in the DotStarPiPainter directory)

So I tried that and no improvement.
Any suggestions appreciated because I'm trying to make this for a Christmas gift for my son who is very into photography.

User avatar
adafruit_support_carter
 
Posts: 29473
Joined: Tue Nov 29, 2016 2:45 pm

Re: DotStarPiPainter help please

Post by adafruit_support_carter »

Did you see any errors when running make?

Make output can be verbose and confusing. One simple way to check for success is to delete the existing .so file and then run make. If it succeeds, it should recreate the file. By running make, you are recompiling the source code to create the .so file.

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

No errors from running make; the output was:

make: Nothing to be done for 'all'

I will delete the .so file and re-make

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

whoa gotta bunch of strange output after running make:

gcc -s -shared -Wl,-soname,liblightpaint.so -o lightpaint.so lightpaint.o
/usr/bin/ld: cannot open output file lightpaint.so: Permission denied
colletc2: error: ld returned 1 exit status
make: *** [Makefile:9: lightpaint.so] Error 1

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

just reran with sudo and file was re-created with no errors

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

Now getting same original error :(

User avatar
adafruit_support_carter
 
Posts: 29473
Joined: Tue Nov 29, 2016 2:45 pm

Re: DotStarPiPainter help please

Post by adafruit_support_carter »

Needing to run make with sudo seems odd. Did you clone the repo using sudo also? The last command here should be done without sudo:
https://learn.adafruit.com/dotstar-pi-p ... -1540033-8
like:

Code: Select all

git clone https://github.com/adafruit/DotStarPiPainter

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

Don't remember why, but I did clone using sudo.
Also just checked my python version and it is 2.7.18 and I thought this needed 3.x

Have to do some more work

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

OK this is strange.
I deleted the DotStarPiPainter directory and tried to clone it and got:

fatal: could not create work tree dir 'DotStarPiPainter': Permission denied

This is probably why I then used sudo

User avatar
adafruit_support_carter
 
Posts: 29473
Joined: Tue Nov 29, 2016 2:45 pm

Re: DotStarPiPainter help please

Post by adafruit_support_carter »

Seems like a more basic permissions issue of some kind if happening. What operating system are you running on the Pi?

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

Tutorial recommended Raspian Lite which I used:

Raspberry Pi OS Lite
Release date: October 30th 2021
Kernel version: 5.10

Think I should start over with full version?

User avatar
adafruit_support_carter
 
Posts: 29473
Joined: Tue Nov 29, 2016 2:45 pm

Re: DotStarPiPainter help please

Post by adafruit_support_carter »

That (Lite version) should be fine.

Just to make sure what is currently happening.

* You're logged in as user pi
* You're in the user pi home directory
* You try to clone the repo with the command: "git clone https://github.com/adafruit/DotStarPiPainter"
* You get the error: "fatal: could not create work tree dir 'DotStarPiPainter': Permission denied"

User avatar
jaimedog
 
Posts: 28
Joined: Sun Dec 05, 2021 5:52 pm

Re: DotStarPiPainter help please

Post by jaimedog »

Hmmm...
no, I changed directory to the root and installed in the root directory.

Should I have installed in the directory the login took me to??

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

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