#8473: notebook option to upload a .sws file
-----------------------------------+----------------------------------------
   Reporter:  olazo                |       Owner:  iandrus     
       Type:  enhancement          |      Status:  needs_review
   Priority:  minor                |   Milestone:  sage-4.7    
  Component:  notebook             |    Keywords:              
     Author:  Ivan Andrus          |    Upstream:  N/A         
   Reviewer:  Karl-Dieter Crisman  |      Merged:              
Work_issues:                       |  
-----------------------------------+----------------------------------------

Comment(by iandrus):

 Replying to [comment:22 kcrisman]:
 > Ivan, is it very hard to catch a certain kind of error?  I get
 {{{
 exceptions.IOError: [Errno 2] No such file or directory:
 'Users/.../MAT338Day1-2011.sws'
 }}}
 > if I try to upload it with
 {{{
 sage -n upload="Users/.../MAT338Day1-2011.sws"
 }}}

 That's what I would expect.  Such a thing shouldn't work--that it did
 before is a mistake :-)

 > If I try to upload with
 {{{
 sage -n upload="/Users/.../MAT338Day1-2011.sws"
 }}}
 > I get
 {{{
 The resource /upload_worksheet?url=file:///Users/.../MAT338Day1-2011.sws
 cannot be found.
 }}}

 I was finally able to reproduce this.  I'm seeing this problem when
 Sage.app is set to be my browser (so it is logged in) and I run `sage
 --notebook upload=...` from the command line.  In this case SAGE_BROWSER
 isn't set correctly so it tries to open the upload page in Safari which
 isn't logged in.  If I then login in Safari and upload again it works.  Is
 this the same problem you are seeing?

 > So here is what works for me.
 >  * old patch, not including first slash.
 > Here is what doesn't work.
 >  * old patch with a slash.
 >  * new patch with or without slash.
 > I'm confused.  I really wanted to get this all reviewed but have no idea
 what is going on, of course.

 I don't understand why the old patch would work but not the new one.  If
 it's not the same problem as above then maybe you could try `sage
 --notebook upload=`localhost/Users/...`  That also works for me and it may
 work better on older versions of OS X.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8473#comment:23>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.

Reply via email to