Hi Alasdair,
On Wed, Jan 27, 2010 at 11:51 AM, Alasdair <[email protected]> wrote:
> I've installed the newest Sage 4.3.1 using the OpenSuse 11.1 binary.
> However, the "load" function seems not to work:
>
> sage: load('myfile.sage')
Can you try the load statement, instead of the load() function? For example:
[mv...@sage ~]$ cat > myfile.sage << EOF
> print next_prime(100)
> EOF
[mv...@sage ~]$ sage
----------------------------------------------------------------------
| Sage Version 4.3.1, Release Date: 2010-01-20 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: load "myfile.sage"
101
sage: load("myfile.sage")
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
/dev/shm/mvngu/dot_sage/temp/sage/24068/_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: 'myfile.sage.sobj'
--
Regards
Minh Van Nguyen
--
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
URL: http://www.sagemath.org