pathname escaping in animate().gif

38 views
Skip to first unread message

William Orrick

unread,
May 7, 2023, 11:00:35 AM5/7/23
to sage-devel
I have encountered the problem that when I try running

bdFrames.gif(delay=5,savefile='myFilename',use_ffmpeg=True)

the following error message is produced:

CalledProcessError: Command 'cd "/var/folders/v8/ksjcxlh9775658j_hrwqvlj80000gq/T/tmpzm1odw2y/dir_ivudixzd/"; ffmpeg -nostdin -y -f image2 -r 20 -i /var/folders/v8/ksjcxlh9775658j_hrwqvlj80000gq/T/tmpzm1odw2y/dir_ivudixzd/%08d.png -pix_fmt rgb24 -loop 0 /Users/williamorrick2/Jupyter Notebooks/myFileName.gif' returned non-zero exit status 1.
The issue seems to be that the pathname to my working directory contains a space character, which is not being escaped. When I run this myself from the command line, with quotation marks around the pathname, it works fine.
I'm not a developer, and don't know if this is a known issue.

Matthias Koeppe

unread,
May 7, 2023, 2:09:29 PM5/7/23
to sage-devel
Thanks for reporting this.
Reply all
Reply to author
Forward
0 new messages