animated snake eyes bonnet for 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.
User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

animated snake eyes bonnet for raspberry pi

Post by mthazel »

I have 240x240 TFT display and Raspberry Pi 3B+
I get this when it boots...

pi@Pi-Eyes:~ $ /boot/Pi_Eyes/fbx2 -i & cd /boot/Pi_Eyes;python3 eyes.py --radius 240 &
[1] 1055
[2] 1056
pi@Pi-Eyes:/boot/Pi_Eyes $ Can't open /dev/mem (try 'sudo')
Traceback (most recent call last):
File "/boot/Pi_Eyes/eyes.py", line 9, in <module>
import pi3d
File "/usr/local/lib/python3.9/dist-packages/pi3d/__init__.py", line 10, in <module>
from pi3d.constants import (USE_PYGAME, PIL_OK,
File "/usr/local/lib/python3.9/dist-packages/pi3d/constants/__init__.py", line 198, in <module>
PLATFORM, bcm, openegl, opengles = _detect_platform_and_load_libraries()
File "/usr/local/lib/python3.9/dist-packages/pi3d/constants/__init__.py", line 193, in _detect_platform_and_load_libraries
set_gles_function_args(opengles) #function defined in constants/gl.py
File "/usr/local/lib/python3.9/dist-packages/pi3d/constants/gl.py", line 387, in set_gles_function_args
gles.glActiveTexture.argtypes = [GLenum] #
AttributeError: 'NoneType' object has no attribute 'glActiveTexture'

please help

Mark
[email protected]

User avatar
rooppoorali
 
Posts: 98
Joined: Sat Jul 16, 2022 12:04 pm

Re: animated snake eyes bonnet for raspberry pi

Post by rooppoorali »

Did you install the Pi3D library first?

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

I installed the latest Raspberry Pi 32 bit Lite Sw on the Pi.
Then ran the install script per the software installation instructions.
Do I need to install other libraries prior to this?

much thanks.
Mark

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

after reading some of the other posts...
would installing on a Pi4 be a solution?

Mark

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

Re: animated snake eyes bonnet for raspberry pi

Post by adafruit_support_carter »

Code: Select all

pi@Pi-Eyes:/boot/Pi_Eyes $ Can't open /dev/mem (try 'sudo')
Try running the command with sudo.

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

now using 2021-10-30 raapios-bullseye-armhf-lite.img
getting error message:

pi@raspberrypi:~ $ sudo /boot/Pi_Eyes/fbx2 -i & cd /boot/Pi_Eyes;python3 eyes.py --radius 240 &
[1] 729
[2] 730
pi@raspberrypi:/boot/Pi_Eyes $ Traceback (most recent call last):
File "/boot/Pi_Eyes/eyes.py", line 9, in <module>
import pi3d
File "/usr/local/lib/python3.9/dist-packages/pi3d/__init__.py", line 10, in <module>
from pi3d.constants import (USE_PYGAME, PIL_OK,
File "/usr/local/lib/python3.9/dist-packages/pi3d/constants/__init__.py", line 198, in <module>
PLATFORM, bcm, openegl, opengles = _detect_platform_and_load_libraries()
File "/usr/local/lib/python3.9/dist-packages/pi3d/constants/__init__.py", line 193, in _detect_platform_and_load_libraries
set_gles_function_args(opengles) #function defined in constants/gl.py
File "/usr/local/lib/python3.9/dist-packages/pi3d/constants/gl.py", line 387, in set_gles_function_args
gles.glActiveTexture.argtypes = [GLenum] #
AttributeError: 'NoneType' object has no attribute 'glActiveTexture'
Can't open primary display

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

current version of python is 3.9.2

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

Re: animated snake eyes bonnet for raspberry pi

Post by adafruit_support_carter »

When you ran the installer script, did you select IPS for the 240x240 display?
https://learn.adafruit.com/animated-sna ... ds-2998021

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

Yes. Option 3
IPS..Product #3787
The 1.54" 240x240 IPS TFT

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

after reading the replies so far..
Is there a specific version of Raspberry Pi Lite "Bullseye" I need to install?
Is there a specific version of Python that needs to be installed.
If the Pi3D library needs to be installed first, what is the specific command line?
and what version of the Pi3d Library should I be looking for?

I've also viewed AlanW's "Snake Eyes Bonnet Install Problem Post and wonder "AdaFruit Support Center's" reply
"the software only works with older specific OS releases, i.e. Legacy Lite:"

What specific Release. when I go to Rasapberry Pi's software download center, they are on the "latest Release" of Lite. What Version Number needs to be on the Pi?

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

Re: animated snake eyes bonnet for raspberry pi

Post by adafruit_support_carter »

Is there a specific version of Raspberry Pi Lite "Bullseye" I need to install?
Yes, per guide:
https://learn.adafruit.com/animated-sna ... stallation
for a 3B+:

Code: Select all

All other Raspberry Pi boards: Raspberry Pi OS Lite (Legacy) software is required. Look for both Lite and Legacy in the name!
Go here:
https://www.raspberrypi.com/software/op ... -os-legacy
and pick the Lite option:
https://downloads.raspberrypi.org/raspi ... ite.img.xz
Is there a specific version of Python that needs to be installed.
Python3 for sure.
If the Pi3D library needs to be installed first, what is the specific command line?
and what version of the Pi3d Library should I be looking for?
Yes, but the installer script should take care of this.

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

I got it to work by installing "2021-10-30-raspios-bullseye-armhf-lite.img" from the legacy Lite downloads.
Followed the install script and everything worked perfectly.
thank You!

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

Re: animated snake eyes bonnet for raspberry pi

Post by adafruit_support_carter »

Cool. Glad that got it working. Thanks for reporting back!

User avatar
mthazel
 
Posts: 9
Joined: Thu Sep 22, 2022 1:28 pm

Re: animated snake eyes bonnet for raspberry pi

Post by mthazel »

So Far so good....
Added Eyes to animatronic Skull project.
Attachments
SKULL.jpg
SKULL.jpg (139.02 KiB) Viewed 148 times

User avatar
TopekaSteve
 
Posts: 2
Joined: Fri Jul 22, 2022 9:11 pm

Re: animated snake eyes bonnet for raspberry pi

Post by TopekaSteve »

I have RaspberryPi4 and 240x240 TFT (ST7789) displays. I am following the software installation instructions on learn.adafruit.com

When I run the install I get the following:

Installing Adafruit code and data in /boot...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
curl: (7) Failed to connect to github.com port 443: No route to host
unzip: cannot find or open master.zip, master.zip.zip or master.zip.ZIP.
cp: cannot stat 'Pi_Eyes-master': No such file or directory
Configuring system...
Done.

Then when I reboot, the backlights for the displays light but no graphics are displayed. Is my problem the following?
"curl: (7) Failed to connect to github.com port 443: No route to host
unzip: cannot find or open master.zip, master.zip.zip or master.zip.ZIP.
cp: cannot stat 'Pi_Eyes-master': No such file or directory"

Any suggestions?

Thank you

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

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