Hi,

Thanks. I have a project in SageMathCloud titled SpaceTime. I created a 
directory under this project named 2014-05-27-151639 and uploaded files 
spalgebra.sagews and SPexample5.sage. When I click on the directory in the 
cloud I see a house icon followed by a forward slash followed by 
2014-05-27-151639. Now When I click on the worksheet it loads up fine in the 
cloud. I try to run load('/home/2014-05-27-151639/SPexample.sage') and I get:

Error in lines 1-1
Traceback (most recent call last):
  File 
"/projects/45ca75dc-bf66-4593-bda3-88fadc7639d6/.sagemathcloud/sage_server.py", 
line 733, in execute
    exec compile(block+'\n', '', 'single') in namespace, locals
  File "", line 1, in <module>
  File 
"/projects/45ca75dc-bf66-4593-bda3-88fadc7639d6/.sagemathcloud/sage_salvus.py", 
line 2795, in load
    exec 'salvus.namespace["%s"] = sage.structure.sage_object.load(*__args, 
**__kwds)'%t in salvus.namespace, {'__args':other_args, '__kwds':kwds}
  File "<string>", line 1, in <module>
  File "sage_object.pyx", line 845, in sage.structure.sage_object.load 
(sage/structure/sage_object.c:9540)
  File 
"/usr/local/sage/sage-6.2.rc0/local/lib/python2.7/site-packages/sage/misc/preparser.py",
 line 1745, in load
    raise IOError('did not find file %r to load or attach' % filename)
IOError: did not find file '/home/2014-05-27-151639/SPexample5.sage' to load or 
attach

Now all of this runs with sage installed on my local machine though the path 
for the file is different for my local machine so I assume 
/home/2014-05-151639/SPexample.sage is not a valid path for the file saved in 
directory 2014-05-151639 under my project in the cloud. I've tried guessing 
what the path might be for files stored in the cloud with no success.

Sorry I wasn't explaining well enough.

-Steve



On 5/28/2014 8:57 AM, William Stein wrote:
> On Tue, May 27, 2014 at 1:13 PM, Stephen Kauffman
> <strangerl...@gmail.com> wrote:
>> Trying to run a file in a worksheet in sagemathcloud with
>>
>> load('./2014-05-27-151639/SPexample5.sage')
>>
>> but every (seemingly reasonable) path I try bombs with file not found
>>
>> the folder 2014-05-27-151639 is in sagemathcloud and the file 
>> SPexample5.sage is in the folder
>>
>> so what is the path. This info doesn't seem to be anywhere google has taken 
>> me.  Thanks
> 
> This is a puzzling question because every reasonable path works fine
> for me.   You're just using standard  Sage here, and the question
> doesn't have anything to do with SageMathCloud in particular.
> 
> Can you post the exact error message?  You just say "path I try bombs
> with file not found" -- but for all I know it is running your .sage
> file file, and inside *that* there is some sort of path issue.    Did
> you try the simplest case, when your .sage file contains only a single
> line, e.g., "print 'hi'".
> 
> Also, is the .sage file otherwise readable?  Maybe the permissions are
> messed up?
> 
> I've posted a 1-minute video here illustrating creating a folder, a
> worksheet, a file, and loading the file from the worksheet.  It's just
> the natural steps though, so I can't imagine it would be useful:
> 
>    http://youtu.be/Xj5-WKeecns
> 
> 
> 

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

Reply via email to