ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 19 May 2018 12:00:55 +0200Problem : ImageMagick and animatehttps://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/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 youMon, 12 Feb 2018 23:44:56 +0100https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/Answer by slelievre for <p>Hi,</p>
<p>I have Sage 8.1 and ImageMagick (installed from 7.0.7-22-Q16-x64-dll.exe) installed on W10.</p>
<p>When I execute in Sage Notebook :</p>
<pre><code>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()
</code></pre>
<p>I get this :</p>
<pre><code>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
</code></pre>
<p>And I have no animation.</p>
<p>How can I solve this ?</p>
<p>Thank you</p>
https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?answer=41125#post-id-41125The 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.
- [sage-windows issue #14: Maybe include some "optional" packages by default](https://github.com/sagemath/sage-windows/issues/14)
In the meantime, you could explore alternative ways to use
Sage under Windows 10, such as those listed in the answer to:
- [Ask Sage #34350: Installing on Windows 10](https://ask.sagemath.org/question/34350/installing-on-windows-10)
Thu, 15 Feb 2018 04:08:11 +0100https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?answer=41125#post-id-41125Comment by Turiel for <p>The version of SageMath provided by the SageMath installer for Windows
might not be able to pick up system libraries from the ambient Windows.</p>
<p>It might be necessary to have ImageMagick installed for the SageMath
installer's underlying Cygwin.</p>
<p>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.</p>
<ul>
<li><a href="https://github.com/sagemath/sage-windows/issues/14">sage-windows issue #14: Maybe include some "optional" packages by default</a></li>
</ul>
<p>In the meantime, you could explore alternative ways to use
Sage under Windows 10, such as those listed in the answer to:</p>
<ul>
<li><a href="https://ask.sagemath.org/question/34350/installing-on-windows-10">Ask Sage #34350: Installing on Windows 10</a></li>
</ul>
https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?comment=42371#post-id-42371Hi,
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,
TurielSat, 19 May 2018 12:00:55 +0200https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?comment=42371#post-id-42371Comment by kroko for <p>The version of SageMath provided by the SageMath installer for Windows
might not be able to pick up system libraries from the ambient Windows.</p>
<p>It might be necessary to have ImageMagick installed for the SageMath
installer's underlying Cygwin.</p>
<p>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.</p>
<ul>
<li><a href="https://github.com/sagemath/sage-windows/issues/14">sage-windows issue #14: Maybe include some "optional" packages by default</a></li>
</ul>
<p>In the meantime, you could explore alternative ways to use
Sage under Windows 10, such as those listed in the answer to:</p>
<ul>
<li><a href="https://ask.sagemath.org/question/34350/installing-on-windows-10">Ask Sage #34350: Installing on Windows 10</a></li>
</ul>
https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?comment=41240#post-id-41240Thanks 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.Fri, 23 Feb 2018 10:15:59 +0100https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?comment=41240#post-id-41240Answer by tmonteil for <p>Hi,</p>
<p>I have Sage 8.1 and ImageMagick (installed from 7.0.7-22-Q16-x64-dll.exe) installed on W10.</p>
<p>When I execute in Sage Notebook :</p>
<pre><code>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()
</code></pre>
<p>I get this :</p>
<pre><code>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
</code></pre>
<p>And I have no animation.</p>
<p>How can I solve this ?</p>
<p>Thank you</p>
https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?answer=41083#post-id-41083I 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']
Tue, 13 Feb 2018 11:24:44 +0100https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?answer=41083#post-id-41083Comment by kroko for <p>I can not help much more since i am not using windows, but it seems that there is a problem with the <code>$DOT_SAGE</code> environment variable being understood as <code>/dot_sage/</code> directory.</p>
<p>Could you please provide what is returned when you type (from the Sage interface you are using):</p>
<pre><code>import os
os.environ['DOT_SAGE']
</code></pre>
https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?comment=41098#post-id-41098Thank you very much for your answer.
Here is what I get :
'/dot_sage'Tue, 13 Feb 2018 23:09:25 +0100https://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/?comment=41098#post-id-41098