Sage does not see Imagemagick
I am trying out the animation thing in http://doc.sagemath.org/html/en/refer....
But Sage keep saying
Error: Neither ImageMagick nor ffmpeg appears to be installed.
And indeed
from sage.misc.sage_ostools import have_program
have_program('convert')
returns false.
But I do have ImageMagick installed by homwbrew. i.e. it works perfectly in Terminal.
What Could Possibly Go Wrong?
(macOS 10.13; Sage 8.3; Imagemagick 7.0.8.)
Update:
have_program('convert',path="/usr/local/bin")
returns true.I temporarily solve this by
os.environ["PATH"]+=":/usr/local/bin"
. Looking for a permanent solution.Well, sounds to me like your ImageMagick is installed under the
/usr/local
prefix so you should add that permanently to yourPATH
(such as in.profile
or something). On Most Linuxes/usr/local/bin
will be on yourPATH
by default, but I don't know about macOS.@Iguananaut I feel like there are two
PATH
s. ThePATH
in my terminal does contains/usr/local/bin/
as I can see it if I doecho $PATH
. But then the python coming with sage assumes a differentPATH
, which does not contain/usr/local/
, as shown byos.environ["PATH"]
. I am not sure which.profile
should I fix in this case.How do you run Sage?