Ask Your Question
3

Problem : ImageMagick and animate

asked 7 years ago

kroko gravatar image

updated 7 years ago

tmonteil gravatar image

Hi,

I have Sage 8.1 and ImageMagick (installed from 7.0.7-22-Q16-x64-dll.exe) installed on W10.

When I execute in Sage Notebook :

sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in sxrange(0,1,.2)]
a = animate(sines)
a.show()

I get this :

convert.exe: unable to open image
'/dot_sage/temp/my_desktop/17724/tmp_bfv0BC.gif': No such file or
directory @ error/blob.c/OpenBlob/3335.
Animation with 5 frames

And I have no animation.

How can I solve this ?

Thank you

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 7 years ago

slelievre gravatar image

The version of SageMath provided by the SageMath installer for Windows might not be able to pick up system libraries from the ambient Windows.

It might be necessary to have ImageMagick installed for the SageMath installer's underlying Cygwin.

I added a suggestion to include ImageMagick in the next version of the SageMath installer for Windows, which should be released shortly after the release of SageMath 8.2.

In the meantime, you could explore alternative ways to use Sage under Windows 10, such as those listed in the answer to:

Preview: (hide)
link

Comments

Thanks for your answer. I hope this problem will be solved in the next SAGE release.

One more thing : this problem occurs with the SAGE Notebook and with Jupyter Notebook too.

kroko gravatar imagekroko ( 7 years ago )

Hi, I've had the same issue as kroko and I'd love it if ImageMagick and the ability to animate plots was featured by default in SageMath for Windows. I've recently installed SageMath 8.2 which fixed some issues I had with plotting figures. But I still get nothing when I wish to animate a plot and use the textbook example provided.

Is there going to be another update very soon, or do I have to wait for SageMath 8.3 ?

Thank you very much, Turiel

Turiel gravatar imageTuriel ( 7 years ago )
0

answered 7 years ago

tmonteil gravatar image

I can not help much more since i am not using windows, but it seems that there is a problem with the $DOT_SAGE environment variable being understood as /dot_sage/ directory.

Could you please provide what is returned when you type (from the Sage interface you are using):

import os
os.environ['DOT_SAGE']
Preview: (hide)
link

Comments

Thank you very much for your answer.

Here is what I get :

'/dot_sage'

kroko gravatar imagekroko ( 7 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 7 years ago

Seen: 923 times

Last updated: Feb 23 '18