flingo64 / PhotoStation-Upload-Lr-Plugin

Photo StatLr (aka PhotoStation Upload) is a Lightroom Publish and Export Service Plugin that enables the export /publishing of photos and videos from Lr to a Synology Photo Station. It uploads the photos/videos and all required thumbnails. It can download comments and ratings and do a real two-way synch of various metadata (tags, ratings, labels).
http://messmer-online.de/index.php/software/11-photo-statlr
GNU General Public License v3.0
209 stars 21 forks source link

Photo StatLr: Publish failed!: Cannot initialize converters #61

Closed lsouchet closed 2 years ago

lsouchet commented 2 years ago

Hello,

I am running on a Mac Mini M1 (Apple Silicon) with MacOS Monterey (12.4) and Lightroom Classic 11.4.1. I am trying to export pictures on a PhotoStation6 Synology (I don't really know how to get a more precise version number of PhotoStation6, if it is relevant, let me know).

I installed ImageMagick, dcraw through brew and exiftool via the installer.

When I try to publish a Collection I get a Popup :

PhotoStatLr: Publish failed!
Booo!!
Cannot initialize converters, check logfile for detailed information

And when I read the log file I get the following:

10:00:45, INFO : Environment: plugin: 7.2.2.20220606 Lr: 11.4.1 OS: 12.4.0.21F79 Lang: fr
10:00:46, INFO : processRenderedPhotos starting
10:00:46, ERROR: PSConvert.new: one or more missing tools: convert: '/usr/local/bin/convert', dcraw '/usr/local/bin/dcraw', ffmpeg: 'not required'
10:00:46, INFO : Photo StatLr: Publish failed!: Cannot initialize converters, check logfile for detailed information
10:00:48, INFO : Get comments: nothing to do.
10:00:48, INFO : Get ratings/metadata: nothing to do.
10:01:22, INFO : Environment: plugin: 7.2.2.20220606 Lr: 11.4.1 OS: 12.4.0.21F79 Lang: fr
10:04:36, INFO : Environment: plugin: 7.2.2.20220606 Lr: 11.4.1 OS: 12.4.0.21F79 Lang: fr
10:04:37, INFO : processRenderedPhotos starting
10:04:37, ERROR: PSConvert.new: one or more missing tools: convert: '/opt/homebrew/bin/convert', dcraw '/opt/homebrew/bin/dcraw', ffmpeg: 'not required'
10:04:37, INFO : Photo StatLr: Publish failed!: Cannot initialize converters, check logfile for detailed information
10:04:39, INFO : Get comments: nothing to do.
10:04:39, INFO : Get ratings/metadata: nothing to do.
10:05:57, INFO : Environment: plugin: 7.2.2.20220606 Lr: 11.4.1 OS: 12.4.0.21F79 Lang: fr
10:06:49, INFO : Environment: plugin: 7.2.2.20220606 Lr: 11.4.1 OS: 12.4.0.21F79 Lang: fr
10:06:49, INFO : processRenderedPhotos starting
10:06:50, ERROR: PSConvert.new: one or more missing tools: convert: '/opt/homebrew/Cellar/imagemagick/7.1.0-39/bin/convert', dcraw '/opt/homebrew/Cellar/dcraw/9.28.0_1/bin/dcraw', ffmpeg: 'not required'
10:06:50, INFO : Photo StatLr: Publish failed!: Cannot initialize converters, check logfile for detailed information
10:06:51, INFO : Get comments: nothing to do.
10:06:51, INFO : Get ratings/metadata: nothing to do.
10:07:12, INFO : Environment: plugin: 7.2.2.20220606 Lr: 11.4.1 OS: 12.4.0.21F79 Lang: fr
10:08:04, INFO : Environment: plugin: 7.2.2.20220606 Lr: 11.4.1 OS: 12.4.0.21F79 Lang: fr
10:08:05, INFO : processRenderedPhotos starting
10:08:05, ERROR: PSConvert.new: one or more missing tools: convert: '/opt/homebrew/Cellar/imagemagick/7.1.0-39/bin/convert', dcraw '/opt/homebrew/Cellar/dcraw/9.28.0_1/bin/dcraw', ffmpeg: 'not required'
10:08:05, INFO : Photo StatLr: Publish failed!: Cannot initialize converters, check logfile for detailed information
10:08:07, INFO : Get comments: nothing to do.
10:08:07, INFO : Get ratings/metadata: nothing to do.

As you can see I tried to edit manually the path of convert and dcraw binaries, but it still does not work, even if those binaries exist at the provided locations:

ls /opt/homebrew/bin/convert 
/opt/homebrew/bin/convert
╭─user@Mac-mini.local ~  
╰─➤  ls -la /opt/homebrew/bin/dcraw
lrwxr-xr-x  1 user  admin  34  4 jul 10:00 /opt/homebrew/bin/dcraw -> ../Cellar/dcraw/9.28.0_1/bin/dcraw
╭─user@Mac-mini.local ~  
╰─➤  ls -la /opt/homebrew/bin/convert         
lrwxr-xr-x  1 user  admin  42  4 jul 10:00 /opt/homebrew/bin/convert -> ../Cellar/imagemagick/7.1.0-39/bin/convert

Do you have an idea?

Thanks for the great work anyway!

flingo64 commented 2 years ago

Try to configure the tools paths in the Plugin Manager settings of Photo StatLr, no need to patch the code. Please, provide the original path, I'm not sure if symbolic links will work. Anyway, set Loglevel to Debug to get more debug output in the logfile.

lsouchet commented 2 years ago

thanks for your quick response. I effectively changed the paths in the settigs of Phot StatLr: image

How can I set LogLevel to Debug?

flingo64 commented 2 years ago

Loglevel is configured in the Export or Publish Service settings, but will not produce more output in this scenario. So, the plugin just checks whether the paths point to existing files. If you are 100% sure the paths are correct, then it might be an permission issue, e.g. Lightroom has no read/search permissions for /opt or its subdirs.

flingo64 commented 2 years ago

No feedback. Closing this issue

lsouchet commented 2 years ago

I am very sorry for my late response. After checking I manage to get rid of this problem by properly installing ffmpeg. The log message ffmpeg: 'not required' is a bit confusing but I could have figured it out on my own.

Thanks for your support and the great work!

flingo64 commented 2 years ago

Ooops, you are right ffmpeg: 'not required' is definitely wrong. I will correct it in the next release. :-)