On Mon, Jun 15, 2009 at 6:07 AM, Florian Beutler<florian.beut...@gmx.de> wrote: > > hello > > flor...@florian-laptop:~/Gadget-2.0.3/Analysis$ sage -v > | SAGE Version 3.0.5, Release Date: 2008-07-11 > > my operation system is ubuntu 9,04 > >> What are the paths below to /usr/lib? > > I don't know what you mean... > regards > florian
You should "apt-get remove sagemath", then install sage from source or one of the binaries at http://sagemath.org/. The Sage included in Debian/Ubuntu is extremely out of date. William > > On Jun 14, 10:00 pm, William Stein <wst...@gmail.com> wrote: >> On Sun, Jun 14, 2009 at 6:48 AM, Florian Beutler<florian.beut...@gmx.de> >> wrote: >> >> > yep sorry... here is the error message >> >> What version of Sage are you using? On what computer? Etc. etc. >> What are the paths below to /usr/lib? >> >> -- William >> >> >> >> >> >> > flor...@florian-laptop:~/sage$ sage friction.py >> > Ok... dann legen wir mal los! >> >> > step1: definition of the density profile >> > 99824085.5683 >> >> > step2: definition of the circular velocity >> > 3.51331142172386 >> >> > step3: definition of the integrated mass >> > 229643.853879355 >> >> > step3: definition of the integrated mass >> > Traceback (most recent call last): >> > File "friction.py", line 29, in <module> >> > print mass(r).n(),"\n" >> > File "/home/florian/sage/functions.py", line 21, in mass >> > i_term = integral(x**2*rho(x), x, 0, r) >> > File "/usr/lib/python2.5/site-packages/sage/misc/functional.py", >> > line 436, in integral >> > return x.integral(*args, **kwds) >> > File "/usr/lib/python2.5/site-packages/sage/calculus/calculus.py", >> > line 2508, in integral >> > return self.parent()(self._maxima_().integrate(v, a, b)) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/maxima.py", >> > line 1601, in integral >> > return I(var, min, max) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/expect.py", >> > line 1182, in __call__ >> > return self._obj.parent().function_call(self._name, [self._obj] + >> > list(args)) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/expect.py", >> > line 1111, in function_call >> > return self.new("%s(%s)"%(function, ",".join([s.name() for s in >> > args]))) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/expect.py", >> > line 1013, in new >> > return self(code) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/maxima.py", >> > line 377, in __call__ >> > return Expect.__call__(self, x) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/expect.py", >> > line 948, in __call__ >> > return cls(self, x) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/expect.py", >> > line 1214, in __init__ >> > self._name = parent._create(value) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/expect.py", >> > line 1092, in _create >> > self.set(name, value) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/maxima.py", >> > line 855, in set >> > self._eval_line(cmd) >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/maxima.py", >> > line 567, in _eval_line >> > self._expect_expr() >> > File "/usr/lib/python2.5/site-packages/sage/interfaces/maxima.py", >> > line 457, in _expect_expr >> > i = self._expect.expect(expr) >> > File "/usr/lib/python2.5/site-packages/pexpect.py", line 1311, in >> > expect >> > return self.expect_list(compiled_pattern_list, timeout, >> > searchwindowsize) >> > File "/usr/lib/python2.5/site-packages/pexpect.py", line 1325, in >> > expect_list >> > return self.expect_loop(searcher_re(pattern_list), timeout, >> > searchwindowsize) >> > File "/usr/lib/python2.5/site-packages/pexpect.py", line 1396, in >> > expect_loop >> > raise EOF (str(e) + '\n' + str(self)) >> > pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style >> > platform. >> > <pexpect.spawn object at 0x3cfe890> >> > version: 2.3 ($Revision: 399 $) >> > command: /usr/bin/maxima >> > args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- >> > maxima.lisp'] >> > searcher: searcher_re: >> > 0: re.compile("\(\%i[0-9]+\)") >> > 1: re.compile("zero or nonzero?") >> > 2: re.compile("an integer?") >> > 3: re.compile("positive, negative, or zero?") >> > 4: re.compile("positive or negative?") >> > 5: re.compile("Break [0-9]+") >> > buffer (last 100 chars): >> > before (last 100 chars): >> > `rat' replaced 1.0 by 1/1 = 1.0 >> >> > `rat' replaced 1.234567901234568 by 100/81 = 1.234567901234568 >> >> > after: <class 'pexpect.EOF'> >> > match: None >> > match_index: None >> > exitstatus: None >> > flag_eof: True >> > pid: 4147 >> > child_fd: 3 >> > closed: False >> > timeout: None >> > delimiter: <class 'pexpect.EOF'> >> > logfile: None >> > logfile_read: None >> > logfile_send: None >> > maxread: 10000 >> > ignorecase: False >> > searchwindowsize: None >> > delaybeforesend: 0 >> > delayafterclose: 0.1 >> > delayafterterminate: 0.1 >> > Maxima crashed -- automatically restarting. >> > End Of File (EOF) in read_nonblocking(). Exception style platform. >> > <pexpect.spawn object at 0x3cfe890> >> > version: 2.3 ($Revision: 399 $) >> > command: /usr/bin/maxima >> > args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- >> > maxima.lisp'] >> > searcher: searcher_re: >> > 0: re.compile("\(\%i[0-9]+\)") >> > buffer (last 100 chars): >> > before (last 100 chars): >> > after: <class 'pexpect.EOF'> >> > match: None >> > match_index: None >> > exitstatus: 1 >> > flag_eof: True >> > pid: 4166 >> > child_fd: 3 >> > closed: False >> > timeout: 30 >> > delimiter: <class 'pexpect.EOF'> >> > logfile: None >> > logfile_read: None >> > logfile_send: None >> > maxread: 10000 >> > ignorecase: False >> > searchwindowsize: None >> > delaybeforesend: 0 >> > delayafterclose: 0.1 >> > delayafterterminate: 0.1 >> > sage: Error running friction.py using Python >> > flor...@florian-laptop:~/sage$ >> >> -- >> William Stein >> Associate Professor of Mathematics >> University of Washingtonhttp://wstein.org > > > -- William Stein Associate Professor of Mathematics University of Washington http://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 at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---