On Jan 15, 2009, at 19:02 , mabshoff wrote:
> > > > On Jan 15, 6:49 pm, Marshall Hampton <[email protected]> wrote: > Hi, > >> William Stein added ffmpeg to sagenb, so that isn't a problem now, >> but >> there is a permissions issue with writing to the DATA directory. So >> the code still won't work as is on sagenb. I haven't figured out >> what >> a permissible directory is to dump the frames into, maybe someone >> else >> can comment on that. > > Just use /tmp or DOT_SAGE/tmp, but create a directory in it so you > don't clobber other jobs of the same kind. It might be a good idea to > add some create_tmpdir() command in Sage that is guaranteed to be > unique and is in a writable directory, i.e. it should first try > DOT_SAGE/tmp, then /tmp and so on. IIRC there is even some env > variable where we can point a per user tmp dir to. So you might want > to open a ticket for the above in order to avoid various people doing > the same thing in their own code over and over again. Python has several calls to make temporary files that will not be clobbered by other users or uses. No need to make directories. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
