Actually it does not seem to work, I get

----------------------------------------------------------------------
| Sage Version 4.3.4, Release Date: 2010-03-19                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: gp("\\r cryptpr.gp")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call
last)

/Users/aleksandarpetrov/Desktop/Macaulay2/sage/<ipython console> in
<module>()

/Users/aleksandarpetrov/Desktop/Macaulay2/sage/local/lib/python2.6/
site-packages/sage/interfaces/expect.pyc in __call__(self, x, name)
   1030
   1031         if isinstance(x, basestring):
-> 1032             return cls(self, x, name=name)
   1033         try:
   1034             return self._coerce_from_special_method(x)

/Users/aleksandarpetrov/Desktop/Macaulay2/sage/local/lib/python2.6/
site-packages/sage/interfaces/expect.pyc in __init__(self, parent,
value, is_name, name)
   1449             except (TypeError, KeyboardInterrupt,
RuntimeError, ValueError), x:
   1450                 self._session_number = -1
-> 1451                 raise TypeError, x
   1452         self._session_number = parent._session_number
   1453

TypeError: Error executing code in GP/PARI:
CODE:
        sage[1]=\r cryptpr.gp;
GP/PARI ERROR:
  ***   unexpected character: sage[1]=\rcryptpr.gp;
                                      ^-------------
sage:


Same thing if I try the other command that William Stein suggested.

On Apr 24, 4:21 pm, Alex P <alexvpetr...@gmail.com> wrote:
> To William Stein: Great thanks.
> To John Cremona: Sorry about that, won't happen again.
>
> On Apr 24, 3:10 pm, William Stein <wst...@gmail.com> wrote:
>
>
>
> > On Fri, Apr 23, 2010 at 5:23 PM, Alex P <alexvpetr...@gmail.com> wrote:
> > > Hi all,
> > > I was trying to use a PARI/GP script in SAGE. I tried gp('\r
> > > name_of_file.gp'), but SAGE said could not get the file.
> > > So is there any way to do this.
>
> > You need
>
> >    sage: gp("\\r name.gp")
>
> > or
>
> >     sage: gp(r"\r name.gp")
>
> > William
>
> > > 10x in advance.
> > > Alex
>
> > > --
> > > 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 
> > > athttp://groups.google.com/group/sage-support
> > > URL:http://www.sagemath.org
>
> > --
> > William Stein
> > Professor of Mathematics
> > University of Washingtonhttp://wstein.org
>
> > --
> > 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 
> > athttp://groups.google.com/group/sage-support
> > URL:http://www.sagemath.org
>
> --
> 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 
> athttp://groups.google.com/group/sage-support
> URL:http://www.sagemath.org

-- 
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

Reply via email to