-
Hi everyone. I purchased my 1st pi device (pi zero w) last night specifically so that I can build a digital picture frame. I installed dietpi without incident, had no issues installing python3 and pip. When I try to install pi-heif I end up with an error that it can't install "no such file or directory: 'gcc' ". What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 29 replies
-
gcc is the general C++ compiler and it's normally in the raspbian distribution - maybe it's missing from dietpi, I've no knowledge of that. There might be other packages needed to compile pi-hief but my approach would be to Let us know how you get on. |
Beta Was this translation helpful? Give feedback.
-
I gave up on dietpi and installed raspberry pi per Wolfgangs instructions. |
Beta Was this translation helpful? Give feedback.
-
Hi @jlederma, Can you show us the output of your failing installation of pi-heif? What happens, if you run python3 -m pip install -U pip
python3 -m pip install pi-heif |
Beta Was this translation helpful? Give feedback.
-
I just tried it myself. And I don't have pi@picframe:~ $ python3 -m pip install pi-heif --no-cache-dir
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pi-heif
Downloading pi_heif-0.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (772 kB)
|████████████████████████████████| 772 kB 1.7 MB/s
Requirement already satisfied: pillow>=8.4.0 in ./.local/lib/python3.9/site-packages (from pi-heif) (9.5.0)
Installing collected packages: pi-heif
Successfully installed pi-heif-0.11.1 |
Beta Was this translation helpful? Give feedback.
-
Can you show me also the complete output |
Beta Was this translation helpful? Give feedback.
-
frame2.log |
Beta Was this translation helpful? Give feedback.
-
Raspberry pi desktop one version behind current
Sent from Yahoo Mail on Android
On Fri, Jun 9, 2023 at 7:13 PM, Alexander ***@***.***> wrote:
wow, I see. I never tried to build wheels for armv6l, as even armv7 wheels are not officially fully supported.
if you have a relatively fresh OS(ubuntu 22.04+), you can install libheif(versions >= 1.12.0 are supported) and probably after that pi-heif will be able to build with success.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I just installed raspberry pi os and followed the directions to install pictureframe. The os does the wheels on its own.
Sent from Yahoo Mail on Android
On Fri, Jun 9, 2023 at 7:13 PM, Alexander ***@***.***> wrote:
wow, I see. I never tried to build wheels for armv6l, as even armv7 wheels are not officially fully supported.
if you have a relatively fresh OS(ubuntu 22.04+), you can install libheif(versions >= 1.12.0 are supported) and probably after that pi-heif will be able to build with success.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
When I installed cmake it still didn't work. It fails building the wheels for heif every time.
Sent from Yahoo Mail on Android
On Fri, Jun 9, 2023 at 7:26 PM, Alexander ***@***.***> wrote:
debian 11 only have libehif 1.11 version which one very old and unsupported.
apt install cmake will install cmake for building it from source.
after each failing step, do: rm -rf /tmp/ph_build_stuff (it is a temp dir that used to build dependencies)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I' haven't tested it. But from my point of view I would just remove pi_heif references from the code.
That should be all. Install picframe.
|
Beta Was this translation helpful? Give feedback.
-
I merged @bigcat88 PR into release 2023.06.12 Install picframe's dependencies manually with pip
Finally install picframe without dependencies |
Beta Was this translation helpful? Give feedback.
-
when I run the first command, the system returns picframe 2023.6.12when I run the 2nd command, the system returns the same picframe version and then the following:PIL: 9.5.0pi3d:2.49yaml 6.0paho.mqtt:1.6.1lptcinfo3:2.1.4numpy: 1.19.5ninepatch: installed but no version infopi_heif: Not found!defusedxml: 0.7.1
when I run the 3rd command I get "/usr/bin/python3: Error while finding module specification for 'picframe.start' (ModuleNotFoundError : No module named 'picframe')
Joseph Lederman
***@***.***
On Tuesday, June 13, 2023, 11:13:09 AM EDT, helgeerbe ***@***.***> wrote:
What do you get if you run:
- python3 -m pip list | grep picframe
- python3 -m picframe.start -v
- sudo python3 -m picframe.start -v
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I did, the spacing just got lost when I replied when I run the first command, the system returns picframe 2023.6.12 when I run the 2nd command, the system returns the same picframe version and then the following: when I run the 3rd command I get "/usr/bin/python3: Error while finding module specification for 'picframe.start' (ModuleNotFoundError : No module named 'picframe') |
Beta Was this translation helpful? Give feedback.
-
Wahoo! I removed all of the dependencies, reinstalled them as root and now it finally works! Thank you VERY, VERY much for your patience and assistance. I have been an IT professional for more than 20 years (just hardly ever use Linux which is why I seem like a noob) and I know how annoying/difficult troubleshooting with people who are clueless can be. |
Beta Was this translation helpful? Give feedback.
-
Happy to read that works finally. Now I'm curious about the graphic performance of the pi zero w. What resolution has your display and does the blending of the images appear smooth? |
Beta Was this translation helpful? Give feedback.
-
Right now I am running it on a 24" display 1920x1080. Mostly it's smooth but it seems to freeze for a second as it really switches from one image to another. Once I finish the build I expect to run it on a smaller lower resolution screen (old 19" monitor) so it should be even smoother. It is definitely displaying the images crisply and matting when appropriate, looks great!
One last question, ideally I will set this up so that it starts up at a set time and stops at a different time daily (basically on when we are likely to be in the room and off when we expect to be out.) I know that I could use a motion sensor, but it won't work for me in this case. From my research, I can probably use cron jobs to schedule the service to start/stop. Is there an easier way?
Joseph Lederman
***@***.***
On Tuesday, June 13, 2023, 04:08:23 PM EDT, helgeerbe ***@***.***> wrote:
Happy to read that works finally. Now I'm curious about the graphic performance of the pi zero w. What resolution has your display and does the blending of the images appear smooth?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
check this https://gist.github.com/thomasedoff/3973846101da1e7496524be075f1c02f#1-configure-automatic-control-of-the-display to set up 2 services to turn display on/off on a given time. I don't know if vcgencmd is still working on the pi zero. if backlight setting is not working you can try to turn the display on/off If the complete vcgencmd is not working you have to spend a litte bit more work. You can test the vcgencmd commands from the console. Let me know if you are able to dim the backlight, or turn display on/of. If not, I can describe how to setup and use xset |
Beta Was this translation helpful? Give feedback.
-
@jlederma By the way, if freezes during picture switching bother you, you can try to create a script to shrink photos to the desired size. Usually, photos are quite large but considering the resolution is 1920x1080 using them as is might be an overkill. I have RPi Zero W with a display of 1280x1024 pixels and with resized images, I have no freezes at all. |
Beta Was this translation helpful? Give feedback.
-
Nice to read, that this little pi is capable to handle picframe, if the resolution is not too high. |
Beta Was this translation helpful? Give feedback.
OK. So it seems, that you have installed picframe not as root.
But you try to run it over the xinit process as root. This will not work. You have to decide, if you want to run it as local user or everything as root.
To run it as root is simple:
run:
python3 -m pip uninstall picframe
- to delete picframe. If you have installed the other dependencies also not as root. Delete them as well.Then run:
sudo python3 -m pip install picframe --no-deps
Hope that
sudo xinit /usr/bin/python3.9 /home/myusername/picframe_data/run_start.py /home/myusername/picframe_data/config/configuration.yaml
will work then.