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]
animated snake eyes bonnet for raspberry pi
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- rooppoorali
- Posts: 98
- Joined: Sat Jul 16, 2022 12:04 pm
Re: animated snake eyes bonnet for raspberry pi
Did you install the Pi3D library first?
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
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
Then ran the install script per the software installation instructions.
Do I need to install other libraries prior to this?
much thanks.
Mark
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
after reading some of the other posts...
would installing on a Pi4 be a solution?
Mark
would installing on a Pi4 be a solution?
Mark
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: animated snake eyes bonnet for raspberry pi
Code: Select all
pi@Pi-Eyes:/boot/Pi_Eyes $ Can't open /dev/mem (try 'sudo')
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
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
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
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
current version of python is 3.9.2
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: animated snake eyes bonnet for raspberry pi
When you ran the installer script, did you select IPS for the 240x240 display?
https://learn.adafruit.com/animated-sna ... ds-2998021
https://learn.adafruit.com/animated-sna ... ds-2998021
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
Yes. Option 3
IPS..Product #3787
The 1.54" 240x240 IPS TFT
IPS..Product #3787
The 1.54" 240x240 IPS TFT
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
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?
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?
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: animated snake eyes bonnet for raspberry pi
Yes, per guide:Is there a specific version of Raspberry Pi Lite "Bullseye" I need to install?
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!
https://www.raspberrypi.com/software/op ... -os-legacy
and pick the Lite option:
https://downloads.raspberrypi.org/raspi ... ite.img.xz
Python3 for sure.Is there a specific version of Python that needs to be installed.
Yes, but the installer script should take care of this.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?
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
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!
Followed the install script and everything worked perfectly.
thank You!
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: animated snake eyes bonnet for raspberry pi
Cool. Glad that got it working. Thanks for reporting back!
- mthazel
- Posts: 9
- Joined: Thu Sep 22, 2022 1:28 pm
Re: animated snake eyes bonnet for raspberry pi
So Far so good....
Added Eyes to animatronic Skull project.
Added Eyes to animatronic Skull project.
- Attachments
-
- SKULL.jpg (139.02 KiB) Viewed 151 times
- TopekaSteve
- Posts: 2
- Joined: Fri Jul 22, 2022 9:11 pm
Re: animated snake eyes bonnet for raspberry pi
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
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
Please be positive and constructive with your questions and comments.