Forum .LRN Q&A: Photo-Album Installation

Collapse
Posted by Kenneth Wyrick on
I'm trying to find the docs for installing the photo-album on my new docker .lrn installs. I have been poking around all morning looking for how to install it.
I feel bad because i should know how to do it but I'm drawing a blank.
I worked on this a couple months ago and finally gave up. This time I'm reaching out to the community for help.
cheers!

I found that my http://litli.net/ thanks to Iuri, has the photo-album so I created the following apm files (which is a super feature to have):

https://litli.net/xowiki/download/file/photo-album-5.2.3.apm
https://litli.net/xowiki/download/file/photo-album-portlet-2.6.0.apm
https://litli.net/xowiki/download/file/dotlrn-photo-album-2.6.0.apm

I was able to install all three (3) of the apm files but based on the error message (below) it looks like I need to create a couple directories:

pa_load_images: error parsing file data /tmp/ns-MC6Vrl Error: couldn't execute "/usr/bin/identify": no such file or directory
    while executing
"error "pa_load_images: error parsing file data $image_file Error: $errMsg""
    (procedure "::nsf::procs::pa_load_images" line 36)
    invoked from within
"pa_load_images  -remove 1  -client_name $upload_file  -description $description  -story $story  -caption $caption  ${upload_file.tmpfile} $album_id $u..."
    ("uplevel" body line 61)
    invoked from within
"uplevel {
    # /packages/photo-album/www/photo-add-2.tcl

ad_page_contract {
    adds a photo to an album

    @author davis@xarg.net
    @author bag..."
    (procedure "code::tcl::/var/www/openacs//packages/photo-album/www/photo-..." line 2)
    invoked from within
"code::tcl::$__adp_stub"
    ("uplevel" body line 12)
    invoked from within
"uplevel {

        if { [file exists $__adp_stub.tcl] } {

            # ensure that data source preparation procedure exists and is up-to-date
      ..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare"
    invoked from within
"template::adp_parse $themed_template {}"
    (procedure "adp_parse_ad_conn_file" line 20)
    invoked from within
"$handler"
    ("::try" body line 3)
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "::nsf::procs::rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$extra_url""
    ("::try" body line 2)
    invoked from within
"ad_try {
            rp_serve_abstract_file "$root/$extra_url"
            set ::tcl_url2file([ad_conn url]) [ad_conn file]
            set ::tcl_url2..."
    (procedure "rp_handle_request" line 47)
    invoked from within
"rp_handle_request"
    ("::try" body line 2) 
The error message
couldn't execute "/usr/bin/identify": no such file or directory
is coming from Linux and means that you do not have the ImageMagick package installed.
The following command installs it under Debian/Ubuntu

sudo apt install imagemagick

photo-album is not included in the 97 supported packages for OpenACS 5.10.

Collapse
Posted by Kenneth Wyrick on
thank you very much that worked straight away once I did an apt update and apt upgrade.
Collapse
Posted by Gustaf Neumann on
Great. image-magic should be added to the packages included in the docker image....

-gn

Collapse
Posted by Kenneth Wyrick on
pa_load_images: error parsing file data /tmp/ns-jm0ygm Error: couldn't execute "/usr/bin/identify": no such file or directory
    while executing
"error "pa_load_images: error parsing file data $image_file Error: $errMsg""
    (procedure "::nsf::procs::pa_load_images" line 36)
    invoked from within
"pa_load_images  -remove 1  -client_name $upload_file  -description $description  -story $story  -caption $caption  ${upload_file.tmpfile} $album_id $u..."
    ("uplevel" body line 61)
    invoked from within
"uplevel {
    # /packages/photo-album/www/photo-add-2.tcl

ad_page_contract { adds a photo to an album @author mailto:davis@xarg.net @author bag..." (procedure "code::tcl::/var/www/openacs//packages/photo-album/www/photo-..." line 2) invoked from within "code::tcl::$__adp_stub" ("uplevel" body line 12) invoked from within "uplevel { if { [file exists $__adp_stub.tcl] } { # ensure that data source preparation procedure exists and is up-to-date ..." (procedure "adp_prepare" line 2) invoked from within "adp_prepare" invoked from within "template::adp_parse $themed_template {}" (procedure "adp_parse_ad_conn_file" line 20) invoked from within "$handler" ("::try" body line 3) invoked from within "rp_serve_concrete_file [ad_conn file]" (procedure "::nsf::procs::rp_serve_abstract_file" line 60) invoked from within "rp_serve_abstract_file "$root/$extra_url"" ("::try" body line 2) invoked from within "ad_try { rp_serve_abstract_file "$root/$extra_url" set ::tcl_url2file([ad_conn url]) [ad_conn file] set ::tcl_url2..." (procedure "rp_handle_request" line 47) invoked from within "rp_handle_request" ("::try" body line 2)

Collapse
Posted by Gustaf Neumann on
Why are you posting the error, that the external program "identify" is not installed on this machine the second time?