Hi,

I'm trying to use gnuplot from within sage.  I think I need to install
the "gnuplotpy" package (see error messages below); however, I'm
behind a firewall and "sage -i stuff" doesn't work.  Is there a way
for me to directly download the required file and install it locally?

I'm using sage version 4.0.1 on MacOS 10.5.6.

Alexander Hanysz


----

----------------------------------------------------------------------
| Sage Version 4.0.1, Release Date: 2009-06-06                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: gnuplot.plot([[1,2],[3,4]])
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call
last)

/Users/myusername/sage/<ipython console> in <module>()

/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
gnuplot.pyc in plot(self, cmd, file, verbose, reset)
     82         """
     83         if reset:
---> 84             self('reset')
     85         self('set terminal x11')
     86         cmd = cmd.replace('^','**')

/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
gnuplot.pyc in __call__(self, line)
     46
     47     def __call__(self, line):
---> 48         return self.gnuplot()(line)
     49
     50     def _eval_line(self, line, *args, **kwds):

/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/
gnuplot.pyc in gnuplot(self)
     43                 return self.__gnuplot
     44             except NameError:
---> 45                 raise RuntimeError, "Install the gnuplotpy
Python module."
     46
     47     def __call__(self, line):

RuntimeError: Install the gnuplotpy Python module.
sage: version()
'Sage Version 4.0.1, Release Date: 2009-06-06'
sage:
Exiting SAGE (CPU time 0m1.03s, Wall time 1m35.41s).


> sage -i gnuplotpy-1.7.p3
Installing gnuplotpy-1.7.p3
Calling sage-spkg on gnuplotpy-1.7.p3
You must set the SAGE_ROOT environment variable or
run this script from the SAGE_ROOT or
SAGE_ROOT/local/bin/ directory.
gnuplotpy-1.7.p3
Machine:
Darwin (hostname) 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386
Deleting directories from past builds of previous/current versions of
gnuplotpy-1.7.p3
/Applications/sage/local/bin/sage-spkg: file gnuplotpy-1.7.p3 does not
exist
Attempting to download it.


(and then it sits there for a long time doing nothing)

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to