I've tried both function call and statement, and get the same error each time.
Thanks, Alasdair On Jan 27, 12:21 pm, Minh Nguyen <nguyenmi...@gmail.com> wrote: > Hi William, > > On Wed, Jan 27, 2010 at 12:12 PM, William Stein <wst...@gmail.com> wrote: > > <SNIP> > > > The load statement *and* function both work for me in sage-4.3.1: Hmm.... > > Indeed they do, as I can verify from a newly compiled Sage 4.3.1: > > [mv...@sage sage-4.3.1]$ pwd > /scratch/mvngu/build/sage-4.3.1 > [mv...@sage sage-4.3.1]$ ./sage > ---------------------------------------------------------------------- > | Sage Version 4.3.1, Release Date: 2010-01-20 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > sage: load '/home/mvngu/myfile.sage' > 101 > sage: load("/home/mvngu/myfile.sage") > 101 > sage: !more /home/mvngu/myfile.sage > print next_prime(100) > > But the system-wide Sage 4.3.1 on sage.math doesn't work for this example: > > [mv...@sage sage-4.3.1]$ which sage > /usr/local/bin/sage > [mv...@sage sage-4.3.1]$ /usr/local/bin/sage > ---------------------------------------------------------------------- > | Sage Version 4.3.1, Release Date: 2010-01-20 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > sage: load '/home/mvngu/myfile.sage' > 101 > sage: load("/home/mvngu/myfile.sage") > --------------------------------------------------------------------------- > IOError Traceback (most recent call last) > > /dev/shm/mvngu/dot_sage/temp/sage/14252/_home_mvngu_myfile_sage_1.py > in <module>() > > /usr/local/sage/local/lib/python2.6/site-packages/sage/structure/sage_object.so > in sage.structure.sage_object.load > (sage/structure/sage_object.c:7222)() > > IOError: [Errno 2] No such file or directory: '/home/mvngu/myfile.sage.sobj' > sage: !more /home/mvngu/myfile.sage > print next_prime(100) > > -- > Regards > Minh Van Nguyen -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org