Ask Your Question
3

Problem : ImageMagick and animate

asked 2018-02-12 23:44:56 +0100

kroko gravatar image

updated 2018-02-13 14:11:37 +0100

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-02-15 04:08:11 +0100

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:

edit flag offensive delete link more

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 ( 2018-02-23 10:15:59 +0100 )edit

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 ( 2018-05-19 12:00:55 +0100 )edit
0

answered 2018-02-13 11:24:44 +0100

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']
edit flag offensive delete link more

Comments

Thank you very much for your answer.

Here is what I get :

'/dot_sage'

kroko gravatar imagekroko ( 2018-02-13 23:09:25 +0100 )edit

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: 2018-02-12 23:44:56 +0100

Seen: 837 times

Last updated: Feb 23 '18