On Thu, Jun 14, 2018 at 11:46 AM Vincent Delecroix
<20100.delecr...@gmail.com> wrote:
>
> On 01/06/2018 23:40, Erik Bray wrote:
> > On Friday, June 1, 2018 at 3:32:19 PM UTC+2, Francesco wrote:
> >>
> >> Hello everyone.
> >> My installation is Sage 8.2 and windows 10 64bit, with imagemagick and
> >> ffmpeg installed. I send these commands to sage: ( an example of reference
> >> manual )
> >>
> >> sage: 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)]
> >> sage: a = animate(sines)
> >> sage: a.show()
> >>
> >>
> >>
> >> after the last command sage tells:
> >> convert.exe: unable to open image
> >> '/dot_sage/temp/DESKTOP-JPA9NBD/7980/tmp_xZEVL6.gif': No such file or
> >> directory @ error/blob.c/OpenBlob/3335.
> >> /opt/sagemath-8.2/local/lib/python2.7/site-packages/sage/repl/rich_output/
> >> display_manager.py:590: RichReprWarning: Exception in _rich_repr_ while
> >> displaying object:
> >> Error: Cannot generate GIF animation.  Verify that convert
> >> (ImageMagick) or ffmpeg is installed, and that the objects passed to
> >> the animate command can be saved in PNG image format.
> >>
> >> See www.imagemagick.org and www.ffmpeg.org for more information.
> >>    RichReprWarning,
> >> Animation with 5 frames
> >>
> >>
> >> But imagemagick and ffmpeg are installed!
> >> Is it a bug ?
> >>
> > I don't know.  How did you install imagemagick and/or ffmpeg?
>
>  From the error message, the problem does not seem to come from
> a problem with the program (convert.exe). Rather the "cygwin" version of
> the path "/dot_sage/temp/DESKTOP-JPA9NBD/7980/tmp_xZEVL6.gif"
> seems not understood. Could it be possible that
> convert.exe would like something like C:/path/to/my/gif?
>
> Erik, is there a straightforward path conversion cygwin <-> windows?
>
> > (I didn't even now Sage did anything with these--are they optional
> > packages?)
>
> These are not optional packages, but since recently they are "features"
>
> https://trac.sagemath.org/ticket/25305

If you point me in the right direction in the code, this is easy to fix:

```
import cygwin
path = cygwin.cygpath(path)
```

This will convert a POSIX path within Cygwin to the equivalent Windows
path for passing to an external, non-Cygwin program.  You can see some
existing examples of this in the code, for example, in the Jmol
interface (which is still broken, but for other reasons...)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to