Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Auto run no longer works?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 10:44 am

Hello.
When I first installed my Adafruit eyes software I made one cruicial mistake; I selected TFT for my 240x240 displays. The resultant was the eyes program would run but I only saw lines on my two displays.
Realizing my error I went back and reinstalled the software this time choosing option 3 for the proper display type.

The issue now, after everything powers back on is the eyes program NO LONGER Auto Runs.

I mean, it does not start up.
I see the surreal mountain road on my monitor and the same thing on my displays.

What I would like is to use this as a Holloween prop and I simply need the eyes to run everytime it is powered on. When it turns off and powers back up I simply want they eyes running without my user manipulation.

Can someone tell me what might have been corrupted? Or what code text to add?

Again, it was auto running before....

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Re: Auto run no longer works?

by adafruit_support_carter on Wed Jun 10, 2020 11:28 am

Were you following this installation process?
https://learn.adafruit.com/animated-sna ... stallation

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 11:44 am

Yes, that is in fact the procedure I was following....
Now, as said I incorrectly selected TFT (option 2) when I should have used option 3 for my 240x240 adafruit TFT displays.

It caused white lines on my displays.

I elected to restart the Raspberry pressing SHIFT to reinstall the software and do it over.

Upon doing so my system starts up to the mountain road scene and that is displayed on my adfruit eyes.

There has to be a simple solution to this.

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Re: Auto run no longer works?

by adafruit_support_carter on Wed Jun 10, 2020 12:04 pm

Look in your /etc/rc.local file for a line that starts with:
Code: Select all | TOGGLE FULL SIZE
/boot/Pi_Eyes/fbx2

and paste the complete line here.

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 12:32 pm

Hopefully I am at the right area:
I went to /etc
Then I expanded RC0 through RC6 and RCs.
All of the folders say <No subdolders>


Am I in the wrong area?

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Re: Auto run no longer works?

by adafruit_support_carter on Wed Jun 10, 2020 12:37 pm

rc.local is a file in the /etc folder.

This may be an easier way to do this, try running this command:
Code: Select all | TOGGLE FULL SIZE
cat /etc/rc.local | grep Pi_Eyes

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 12:53 pm

After attempting the code I see:

/boot/Pi_Eyes/fbx2 -i &
cd /boot/Pi_Eyes; python3 eyes.py -- radius 240 &

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Re: Auto run no longer works?

by adafruit_support_carter on Wed Jun 10, 2020 1:00 pm

That seems OK. Try running those two lines interactively and see if the eyes shows up.

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 1:39 pm

What do you mean by interactively?
If meaning type this code:
cat /etc/rc.local

Then:
grep Pi_Eyes

The result is no change.
The eyes are broadcasting the desktop seen (a desert highway).

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Re: Auto run no longer works?

by adafruit_support_carter on Wed Jun 10, 2020 1:45 pm

Run this command:
Code: Select all | TOGGLE FULL SIZE
/boot/Pi_Eyes/fbx2 -i &

then run this command:
Code: Select all | TOGGLE FULL SIZE
cd /boot/Pi_Eyes; python3 eyes.py -- radius 240 &

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 1:52 pm

If you were meaning type each line:

/boot/Pi_Eyes/fbx2 -i &

I then get:
[2] 4401
[1] Exit 127. / fbx2 -i
Cant open dev men try sudo

Next line code:
cd /boot/Pi_Eyes; python3 eyes.py. -- radius 240 &

I get:
[3] 4427
[2] Exit 1. /boot/Pi_Eyes/fbx2 -i. (wd....

(wd now: /boot/Pi_eyes)

File "eyes.py", line 9, in <module>
Import pi3d
Importerror: no module named pi3d

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Re: Auto run no longer works?

by adafruit_support_carter on Wed Jun 10, 2020 2:09 pm

Yep. That was the idea. Hmmm, OK, let's try again but this time with sudo:

Code: Select all | TOGGLE FULL SIZE
sudo /boot/Pi_Eyes/fbx2 -i &

and then:
Code: Select all | TOGGLE FULL SIZE
cd /boot/Pi_Eyes; sudo python3 eyes.py -- radius 240 &

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 3:10 pm

Result error:
File "eyes.py" line 9 in <module>
Import pi3d

Importerror: No module named 'pi3d'

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Re: Auto run no longer works?

by adafruit_support_carter on Wed Jun 10, 2020 3:56 pm

It's acting like it's missing a module that should have been installed by the script. Let's double check that.

You can list the installed modules with:
Code: Select all | TOGGLE FULL SIZE
pip3 list

but since the install is done with sudo, you'll want to also check the same way, so run:
Code: Select all | TOGGLE FULL SIZE
sudo pip3 list

and check if pi3d is in the list. If the list is too long, you can filter it with:
Code: Select all | TOGGLE FULL SIZE
sudo pip3 list | grep pi3d

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: Auto run no longer works?

by Orendacl on Wed Jun 10, 2020 5:04 pm

When executing the list commands I do not see pi3d.

Orendacl
 
Posts: 15
Joined: Wed May 06, 2020 12:00 pm

Please be positive and constructive with your questions and comments.