Page 1 of 1

IM 6.8.6-6 (OS X - MacPorts): no delegates are recognized

Posted: 2013-09-14T06:31:30-07:00
by agl2013
After installing the latest ImageMagick (6.8.6-6) on OS X (via MacPorts), I can't convert any images because no delegates are found. Indeed, here's the output of identify --list format:

Code: Select all

tillina:~ artemio$ identify -list format
 Format  Module    Mode  Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images
As you can see, absolutely no delegates are found! This is weird, since MacPorts takes care of IM's dependencies automatically. Surprisingly, identify --version seems to indicate that the usual assortment of delegates is installed:

Code: Select all

tillina:~ artemio$ identify --version
Version: ImageMagick 6.8.6-6 2013-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib fftw fontconfig freetype gslib jng jpeg lcms lzma png ps tiff x xml zlib
This is confirmed by convert -list configure (see the DELEGATES item):

Code: Select all

tillina:~ artemio$ convert -list configure

Path: /opt/local/lib/ImageMagick-6.8.6//config-Q16/configure.xml

Name           Value
-------------------------------------------------------------------------------
CC             /usr/bin/clang
CFLAGS         -I/opt/local/include/freetype2 -I/opt/local/include -pipe -Os -arch x86_64 -Wall -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH     /opt/local/lib/ImageMagick-6.8.6/modules-Q16/coders
CONFIGURE      ./configure  '--prefix=/opt/local' '--enable-shared' '--enable-static' '--disable-ltdl-install' '--disable-silent-rules' '--with-frozenpaths' '--without-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-fontconfig' '--with-gslib' '--with-jpeg' '--with-lcms' '--with-png' '--with-tiff' '--with-webp' '--with-zlib' '--with-modules' '--with-xml' '--without-perl' '--without-fpx' '--without-jbig' '--without-jp2' '--without-wmf' '--without-gvc' '--without-rsvg' '--without-lqr' '--without-pango' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' '--with-x' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -Os -arch x86_64'
CONFIGURE_PATH /opt/local/etc/ImageMagick-6/
COPYRIGHT      Copyright (C) 1999-2013 ImageMagick Studio LLC
CPPFLAGS       -I/opt/local/include/ImageMagick-6
CXX            /usr/bin/clang++
CXXFLAGS       -pipe -Os -arch x86_64 -D_THREAD_SAFE -pthread
DEFS           -DHAVE_CONFIG_H
DELEGATES      bzlib fftw fontconfig freetype gslib jng jpeg lcms lzma png ps tiff x xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts --with-gvc=no --with-jp2=no --with-lqr=no --with-openexr=no --with-pango=no --with-rsvg=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /opt/local/share/doc/ImageMagick-6
EXEC-PREFIX    /opt/local
EXECUTABLE_PATH /opt/local/bin
FEATURES       DPC Modules
FILTER_PATH    /opt/local/lib/ImageMagick-6.8.6/modules-Q16/filters
HOST           x86_64-apple-darwin13.0.0
INCLUDE_PATH   /opt/local/include/ImageMagick-6
LDFLAGS        -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -L/opt/local/lib
LIB_VERSION    0x686
LIB_VERSION_NUMBER 6,8,6,6
LIBRARY_PATH   /opt/local/lib/ImageMagick-6.8.6
LIBS           -lMagickCore -llcms2 -L/opt/local/lib -lfreetype -lfftw3 -L/opt/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -L/opt/local/lib -llzma -lbz2 -lz -lltdl -lm -lpthread
NAME           ImageMagick
PCFLAGS        -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX         /opt/local
QuantumDepth   16
RELEASE_DATE   2013-08-17
SHARE_PATH     /opt/local/share/ImageMagick-6
SHAREARCH_PATH /opt/local/lib/ImageMagick-6.8.6/config-Q16
SVN_REVISION   12720
TARGET_CPU     x86_64
TARGET_OS      darwin13.0.0
TARGET_VENDOR  apple
VERSION        6.8.6
WEBSITE        http://www.imagemagick.org

Path: [built-in]

Name           Value
-------------------------------------------------------------------------------
FEATURES       
NAME           ImageMagick
QuantumDepth   16
I am absolutely confused by this utter contradiction, and haven't been able to make IM recognize the delegates that are obviously installed (I can easily check that with the port command in MacPorts). I have even uninstalled IM and all its dependencies (via MacPorts) and reinstalled them, but the problem persists. So IM is not able to convert any formats, and I am at my wit's end. Has anybody any idea of what the problem might be, or suggestions as to how to fix it?

Thanks a lot,

Artemio

Re: IM 6.8.6-6 (OS X - MacPorts): no delegates are recognize

Posted: 2013-09-14T20:06:31-07:00
by fmw42
This problem was reported earlier at viewtopic.php?f=1&t=23970&p=102364&hili ... es#p102364

If that does not answer your issue, then I would suggest you uninstall IM from MacPorts and install all the delegates from MacPorts, then install IM from source. see

http://www.imagemagick.org/script/insta ... e.php#unix
viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202



P.S. Have you verified that you do not have multiple versions of IM installed, perhaps one in /usr/local/bin or /usr/bin and another in /opt/local/bin? Also verify that the delegates are also installed in /opt/

try

type -a convert

see if it finds multiple versions

Re: IM 6.8.6-6 (OS X - MacPorts): no delegates are recognize

Posted: 2013-09-15T07:45:45-07:00
by agl2013
Thanks a lot for your answer. In answer to your question, I have already verified that there are no other versions of IM installed anywhere. I appreciate your suggestion about installing IM from source (after installing all the needed delegates from MacPorts), but would rather use MacPort's IM if possible. It seems to me that the cause of the problem is that IM somehow can't find its delegates, even if they are installed at the appropriate locations. Is there a way to verify what kind of search path is IM using to look for its delegates its delegates?

Thanks again,

Artemio

P.S. Below is the output of "convert -list delegate". Does this look normal to you, or suggests why IM can't find its delegates?

Code: Select all

Path: /opt/local/etc/ImageMagick-6/delegates.xml

Delegate                Command
-------------------------------------------------------------------------------
    blender =>          "blender" -b "%i" -F PNG -o "%o""\n"/opt/local/bin/convert" -concatenate "%o*.png" "%o"
        cdr =>          "uniconvertor" "%i" "%o.svg"; mv "%o.svg" "%o"
        cgm =>          "ralcgm" -d ps -oC < "%i" > "%o" 2> "%Z"
 dng:decode =>          "ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"
        dot =>          "dot" -Tsvg "%i" -o "%o"
        dvi =>          "dvips" -q -o "%o" "%i"
        eps<=>pdf       "/opt/local/bin/gsx" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
        eps<=>ps        "/opt/local/bin/gsx" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=nodevice" "-sOutputFile=%o" "-f%i"
        fig =>          "fig2dev" -L ps "%i" "%o"
        hpg =>          "hp2xx" -q -m eps -f `basename "%o"` "%i";     mv -f `basename "%o"` "%o"
       hpgl =>          "hp2xx" -q -m eps -f `basename "%o"` "%i";     mv -f `basename "%o"` "%o"
        htm =>          "html2ps" -U -o "%o" "%i"
       html =>          "html2ps" -U -o "%o" "%i"
      https =>          "/usr/bin/curl" -s -k -o "%o" "https:%M"
       ilbm =>          "ilbmtoppm" "%i" > "%o"
        jxr =>          "mv "%i" "%i.jxr"; "JxrDecApp" -i "%i.jxr" -o "%o.pnm"; mv "%i.jxr" "%i"; mv "%o.pnm" "%o"
        man =>          "/usr/bin/groff" -man -Tps "%i" > "%o"
       miff<= show      "/opt/local/bin/display" -delay 0 -window-group %[group] -title "%l " "ephemeral:%i"
mpeg:decode =>          "ffmpeg" -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"
        pdf<=>eps       "/opt/local/bin/gsx" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
        pdf<=>ps        "/opt/local/bin/gsx" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=nodevice" "-sOutputFile=%o" "-f%i"
        plt =>          "/bin/echo" "set size 1.25,0.62; set terminal postscript portrait color solid; set output \'%o\'; load \'%i\'" > "%u";"gnuplot" "%u"
        pnm<= ilbm      "ppmtoilbm" -24if "%i" > "%o"
        pnm<= jxr       "mv "%i" "%i.pnm"; "" -i "%i.pnm" -o "%o.jxr"; mv "%i.pnm" "%i"; mv "%o.jxr" "%o"
        pnm<= wdp       "mv "%i" "%i.pnm"; "" -i "%i.pnm" -o "%o.jxr"; mv "%i.pnm" "%i"; mv "%o.jxr" "%o"
        pov =>          "povray" "+i%i" -D0 "+o%o" +fn%q +w%w +h%h +a -q9 "-kfi%s" "-kff%n";"/opt/local/bin/convert" -concatenate "%o*.png" "%o"
         ps<=>pdf       "/opt/local/bin/gsx" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
         ps<=>eps       "/opt/local/bin/gsx" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
         ps<= print     "lpr "%i"
       rgba<= rle       "rawtorle" -o "%o" -v "%i"
       scan =>          "scanimage" -d "%i" > "%o"
      scanx =>          "scanimage" > "%o"
      shtml =>          "html2ps" -U -o "%o" "%i"
        sid =>          "mrsidgeodecode" -if sid -i "%i" -of tif -o "%o" > "%u"
        svg =>          "rsvg-convert" -o "%o" "%i"
       tiff<= launch    "gimp" "%i"
        txt<=>ps        "enscript" -o "%o" "%i"
        wdp =>          "mv "%i" "%i.jxr"; "JxrDecApp" -i "%i.jxr" -o "%o.pnm"; mv "%i.jxr" "%i"; mv "%o.pnm" "%o"
        wmf =>          "wmf2eps" -o "%o" "%i"

Re: IM 6.8.6-6 (OS X - MacPorts): no delegates are recognize

Posted: 2013-09-15T11:40:53-07:00
by fmw42
Sorry, I do not know enough about the delegates.xml file. It may be something wrong in the MacPorts configure file. I do not know enough about installing IM from MacPorts. Check with the MacPorts documentation to see if you can modify it. Did you follow all the instructions at http://www.imagemagick.org/script/binar ... php#macosx


I think one of the IM developers will need to respond.

Re: IM 6.8.6-6 (OS X - MacPorts): no delegates are recognize

Posted: 2013-10-24T17:27:12-07:00
by geektor2007
Has anyone fixed this? I got the same error in Mavericks.