MikeGawi / ePiframe

ePiframe is an e-Paper (or HDMI, Composite display) Raspberry Pi Photo Frame with Google Photos and more
GNU General Public License v3.0
66 stars 12 forks source link

0 Images found from mounted NAS or local .jpg #87

Closed NotaBrick closed 11 months ago

NotaBrick commented 11 months ago

I'm getting an error where I am trying to use a NAS with several folders of photos as the local path, but the scipt is finding 0 photos. It also fails when directing to the home directory with a jpg in it. Fresh lite install, pi zero w, manual install (auto didn't detect it was on a pi?), all pip libraries manually installed, with flask<2.2.0 (used 2.02) , werkzeug==2.0.3 being difficult.

Log: 2023-10-29 15:48:25 : Verifying configuration... 2023-10-29 15:48:25 : OK! 2023-10-29 15:48:25 : Checking sources... 2023-10-29 15:48:25 : OK! 2023-10-29 15:48:25 : Getting data from local source... 2023-10-29 15:48:31 : Success! 2023-10-29 15:48:31 : Found 0 photos 2023-10-29 15:48:31 : No photos in albums!

Additional error in terminal

ePiframe - e-Paper Raspberry Pi Photo Frame 2023-10-29 15:48:25 : Verifying configuration... 2023-10-29 15:48:25 : OK! 2023-10-29 15:48:25 : Checking sources... 2023-10-29 15:48:25 : OK! 2023-10-29 15:48:25 : Getting data from local source... /home/frame/ePiframe-master/modules/photomanager.py:72: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. merged = target_dataframe.append([source_dataframe]) 2023-10-29 15:48:31 : Success! 2023-10-29 15:48:31 : Found 0 photos 2023-10-29 15:48:31 : No photos in albums!

I have tested "--test-convert [file]" with the full path of a .jpg photo on the NAS and that converts correctly.

2023-10-29 15:39:13 : Verifying configuration... 2023-10-29 15:39:13 : OK! 2023-10-29 15:39:22 : Processing the photo... 2023-10-29 15:39:33 : Success! 2023-10-29 15:39:33 : Done in 00:00:21

I have tested "--test-display [file]" with the above converted file and the works fine.

2023-10-29 15:40:04 : Verifying configuration... 2023-10-29 15:40:04 : OK! 2023-10-29 15:40:04 : Sending to display... 2023-10-29 15:40:14 : Done in 00:00:10

I believe my config settings are appropriate below, all else is default except the google api disabled:

Set 1 to get photos from local storage. The rest of the values in this section regarding local should be filled as well when enabled. Default: 1 (enabled) use_local=1

Path of photos in local storage. Folder will be created if not exists. Default: 1 (enabled) local_path=/mnt/photos

Set 1 to get photos from local storage recursively from subfolders. Default: 1 (enabled) local_subfolders=1

I've tried several different versions for local path, including the photos directory in the main ePiframe. I've tried a photo locally stored (several locations) it cannot find it. I've also attemped all debugging suggtions, and more and cannot find the root cause for failure to detect the large repository of .jpgs.

MikeGawi commented 11 months ago

Fix was applied to the master branch, so please update ePiframe (just the code) with: (all as a superuser)

cd <path>
cp config.cfg config.cfg.bak
wget -q https://github.com/MikeGawi/ePiframe/archive/master.zip -O ePiframe.zip
unzip -q ePiframe.zip
cp -r ePiframe-master/* .
rm -r ePiframe-master/ ePiframe.zip
chmod +x *.py
cp config.cfg.bak config.cfg

and let me know if it is working. Thanks!

NotaBrick commented 11 months ago

The fix works, thank you.