[gradsusr] Error with sys command
Davide Sacchetti
davide.sacchetti at arpal.liguria.it
Mon Oct 18 03:46:11 EDT 2021
when you invoke convert from grads you export grads environment to imagemagick processes:
try adding 'unset LD_LIBRARY_PATH' at the beggining of convertPNG.sh
Hoping it helps
Davide
Dott. Davide Sacchetti
Dipartimento Stato dell’Ambiente e Tutela dai Rischi Naturali
U.O. Clima Meteo Idro
Viale Brigate Partigiane 2, 16129 Genova (I)
tel: +39 0106437535
mail: davide.sacchetti at arpal.liguria.it web: https://www.arpal.liguria.it/homepage/meteo.html
Da: iri <iri at irizone.net>
A: GrADS Users Forum <gradsusr at gradsusr.org>
Inviato: 17/10/2021 18:40
Oggetto: [gradsusr] Error with sys command
Hi GrADS users and developeres !
I create some PNG plots succesfully.
I wish to change the colors palette.
I invoke convert (imagemagik) via the sys command from a script.
convert is installed and work fine directly from a Bash or Python script
from Debian Bulleyes.
cmd = "./convertPNG.sh "%pngFile
say cmd
sys (cmd)
I get this error :
./convertPNG.sh ./img/aromeOM/20211016/00/antilles_uv_cape_rh2m_00.png
convert:
/opt/opengrads/opengrads-2.2.1.oga.1/Linux/Versions/2.2.1.oga.1/x86_64/gex/libstdc++.so.6:
version `CXXABI_1.3.8' not found (required by
/lib/x86_64-linux-gnu/libicuuc.so.67)
Syntax Error
Error occurred on line 1
In file ./img/aromeOM/20211016/00/antilles_uv_cape_rh2m_00.png
I tried this :
'!./convertPNG.sh '%pngFile
I get this similar error :
convert:
/opt/opengrads/opengrads-2.2.1.oga.1/Linux/Versions/2.2.1.oga.1/x86_64/gex/libstdc++.so.6:
version `CXXABI_1.3.8' not found (required by
/lib/x86_64-linux-gnu/libicuuc.so.67)
convertPNG.sh :
if [ -f "$1" ]; then
convert -type palette -colors 255 "$1" png8:"$1"
fi
exit 0
Is it only the available version of libstdc++ that is at issue?
Any help is appreciated to solve it,
steph
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
https://urlsand.esvalabs.com/?u=http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr&e=7312d17f&h=5ee7e1e3&f=y&p=n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20211018/1675127d/attachment.html>
More information about the gradsusr
mailing list