sage don't see my imagemagik nor ffmpeg
Hi there
I'm having troubles making animation since sage do not recognize ffmpeg & convert.
I started considering the options that I saw in this forum.
here is the status. when I run the following in sagemath
s=animate(sf,aspect_ratio=(1,1,1))
s.save('gif/an.gif')
OSError: Error: Neither ImageMagick nor ffmpeg appear to be installed.
Current situation
- I have ffmpeg installed (I'm using it with audacity)
- I have imagemagik installed and running very nicely since many years
- I have the binaries (convert, ffmpeg,
ffprobe in the
/usr/local/bin
folder - I have the PATH variable containing
/usr/local/bin
-
have_program('convert')
returns False -
have_program('convert',path=`"/usr/local/bin"`)
returns True - init.sage created and contains the following
PATH=$PATH:/usr/local/bin`
-
echo $PATH
returns"/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin "
one can see that /usr/local/bin
appears twice.
Configuration
Running MacOs Montery version 12.1, sage 9-5 as an app.Hope someone out there having some idea. All the best
Mac OS is known to pull such shenanigans. Perusing sage-support, and possibly asking there, might be useful.
On a mac, the line
PATH=$PATH:/usr/local/bin
should be added to the.bash_profile
file I think not in the init.sage file