2012/5/9 Paulo César Pereira de Andrade
<paulo.cesar.pereira.de.andrade(a)gmail.com>:
2012/5/9 Paulo César Pereira de Andrade
<paulo.cesar.pereira.de.andrade(a)gmail.com>:
[...]
Jerry, in case you want to test the current sagemath build, I think
I did not forgot
anything, but currently hacked rpms are:
kenobi.mandriva.com/~pcpa/cliquer-1.21-1.fc16.src.rpm
the champion in hacking. This really needs a better integration with
upstream and
sagemath. Need to rename the sage_* symbols and provide the functionality in
the library.
http://kenobi.mandriva.com/~pcpa/flint-1.6-3.fc16.src.rpm
quick hack to add NTL support.
http://kenobi.mandriva.com/~pcpa/linbox-1.2.2-4.fc16.src.rpm
linbox side patches in my work to get sagemath 5.0rc0 to work with linbox 1.2.2.
http://kenobi.mandriva.com/~pcpa/symmetrica-2.0-7.fc16.src.rpm
symmetrica built without -DLOCALTRUE to avoid unresolved symbols.
http://kenobi.mandriva.com/~pcpa/sagemath.tar.bz2
rpm tree with the latest log, but without the tarball, just get it from
http://boxen.math.washington.edu/home/release/sage-5.0.rc0/sage-5.0.rc0.tar
In the sagemath.log in sagemath.tar.bz2 you should notice that it should
be required to create a maxima-runtime-ecl package.
I made two RFE bugzilla reports to ecl and maxima to have maxima-runtime-ecl,
and in the meantime built it locally.
First test of the generated package:
-%<-
$ sage
----------------------------------------------------------------------
| Sage Version 5.0.rc0, Release Date: 2012-05-01 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage: 1+1
2
sage:
Exiting Sage (CPU time 0m0.03s, Wall time 0m4.25s).
Exiting spawned Gap process.
-%<-
can load and unload without a crash! :-) Trying a few examples from
the tutorial...
-%<-
$ sage
----------------------------------------------------------------------
| Sage Version 5.0.rc0, Release Date: 2012-05-01 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage: x = var('x')
sage: solve(x^2 + 3*x + 2, x)
Condition of type: SIMPLE-TYPE-ERROR
In function MAKE-FOREIGN-DATA-FROM-ARRAY, the value of argument is
"\"[x = -2,x = -1]\""
which is not of expected type BASE-STRING
Available restarts:
1. (USE-VALUE) Supply a new value of type BASE-STRING.
Top level in: #<process TOP-LEVEL>.
Internal or unrecoverable error in:
GO found an inexistent tag
[2: No such file or directory]
;;; ECL C Backtrace
;;; /usr/lib64/libecl.so.12.2(si_dump_c_backtrace+0x2f) [0x7f404cb841cf]
;;; /usr/lib64/libecl.so.12.2(ecl_internal_error+0x44) [0x7f404cb6c134]
;;; /usr/lib64/libecl.so.12.2(+0x78f2d) [0x7f404ca97f2d]
;;; /usr/lib64/libecl.so.12.2(cl_funcall+0x83) [0x7f404cb4bb23]
;;; /usr/lib64/libecl.so.12.2(ecl_check_cl_type+0x2c) [0x7f404cb8a9ec]
;;; /usr/lib64/libecl.so.12.2(ecl_base_string_pointer_safe+0x1f)
[0x7f404cbaa9bf]
;;; /usr/lib64/python2.7/site-packages/sage/libs/ecl.so(+0x6416)
[0x7f404cea8416]
;;; /usr/lib64/python2.7/site-packages/sage/libs/ecl.so(+0x675d)
[0x7f404cea875d]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x50d3) [0x32afadfb13]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5b40) [0x32afae0580]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5b40) [0x32afae0580]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5]
;;; /usr/lib64/libpython2.7.so.1.0() [0x32afa6dc2c]
;;; /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53) [0x32afa49193]
;;; /usr/lib64/libpython2.7.so.1.0() [0x32afa57dff]
;;; /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53) [0x32afa49193]
;;; /usr/lib64/python2.7/site-packages/sage/symbolic/expression.so(+0x3bc8d)
[0x7f405a962c8d]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x567d) [0x32afae00bd]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x32) [0x32afae16d2]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5547) [0x32afadff87]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5b40) [0x32afae0580]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5]
;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb]
/usr/share/sagemath/local/bin/sage: line 197: 26472 Aborted
(core dumped) sage-ipython "$@" -i
trying others:
-%<-
$ sage
----------------------------------------------------------------------
| Sage Version 5.0.rc0, Release Date: 2012-05-01 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage: gp('znprimroot(10007)')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/pcpa/rpmbuild/<ipython console> in <module>()
/usr/lib64/python2.7/site-packages/sage/interfaces/interface.pyc in
__call__(self, x, name)
196
197 if isinstance(x, basestring):
--> 198 return cls(self, x, name=name)
199 try:
200 return self._coerce_from_special_method(x)
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in
__init__(self, parent, value, is_name, name)
1332 except (TypeError, KeyboardInterrupt,
RuntimeError, ValueError), x:
1333 self._session_number = -1
-> 1334 raise TypeError, x
1335 self._session_number = parent._session_number
1336
TypeError: Unable to start pari because the command 'gp --emacs
--quiet --stacksize 10000000' failed.
sage: G = gap('Group((1,2,3)(4,5), (3,4))'); G
Group( [ (1,2,3)(4,5), (3,4) ] )
sage: R1 = singular.ring(0, '(x,y)', 'dp'); R1
// characteristic : 0
// number of vars : 2
// block 1 : ordering dp
// : names x y
// block 2 : ordering C
sage: f = maxima.eval('ij_entry[i,j] := i/j')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
/home/pcpa/rpmbuild/<ipython console> in <module>()
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in
eval(self, code, strip, synchronize, locals, allow_use_file,
split_lines, **kwds)
1244 elif split_lines:
1245 return '\n'.join([self._eval_line(L,
allow_use_file=allow_use_file, **kwds)
-> 1246 for L in
code.split('\n') if L != ''])
1247 else:
1248 return self._eval_line(code,
allow_use_file=allow_use_file, **kwds)
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in
_eval_line(self, line, allow_use_file, wait_for_prompt, reformat,
error_check, restart_if_needed)
749 return repr(a)
750 else:
--> 751 self._sendline(line)
752
753 line_echo = self._expect.readline()
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in
_sendline(self, str)
615 '9'
616 """
--> 617 self._sendstr(str)
618 os.write(self._expect.child_fd, os.linesep)
619
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in
_sendstr(self, str)
1113 """
1114 if self._expect is None:
-> 1115 self._start()
1116 try:
1117 os.write(self._expect.child_fd, str)
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in _start(self)
586
587 """
--> 588 Expect._start(self)
589 self._sendline(r":lisp (defun tex-derivative (x l r)
(tex (if $derivabbrev (tex-dabbrev x) (tex-d x '\\partial)) l r lop
rop ))")
590
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in
_start(self, alt_message, block_during_init)
477 failed_to_start.append(self.name())
478 raise RuntimeError, "Unable to start %s because
the command '%s' failed.\n%s"%(
--> 479 self.name(), cmd, self._install_hints())
480
481 os.chdir(current_path)
RuntimeError: Unable to start maxima because the command
'maxima-noreadline --userdir="/home/pcpa/.sage/maxima" -p
"/usr/share/sagemath/local/bin/sage-maxima.lisp"' failed.
sage: A = maxima('genmatrix(ij_entry,4,4)'); A
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/pcpa/rpmbuild/<ipython console> in <module>()
/usr/lib64/python2.7/site-packages/sage/interfaces/interface.pyc in
__call__(self, x, name)
196
197 if isinstance(x, basestring):
--> 198 return cls(self, x, name=name)
199 try:
200 return self._coerce_from_special_method(x)
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in
__init__(self, parent, value, is_name, name)
1153 True
1154 """
-> 1155 ExpectElement.__init__(self, parent, value,
is_name=False, name=None)
1156
1157 def display2d(self, onscreen=True):
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in
__init__(self, parent, value, is_name, name)
1332 except (TypeError, KeyboardInterrupt,
RuntimeError, ValueError), x:
1333 self._session_number = -1
-> 1334 raise TypeError, x
1335 self._session_number = parent._session_number
1336
TypeError: Unable to start maxima because the command
'maxima-noreadline --userdir="/home/pcpa/.sage/maxima" -p
"/usr/share/sagemath/local/bin/sage-maxima.lisp"' failed.
sage: quit
Exiting Sage (CPU time 0m0.24s, Wall time 1m36.57s).
Exiting spawned Singular process.
Exiting spawned Gap process.
-%<-
gap and singular appear to have worked at least for a very basic test.
The notebook starts correctly, but cannot do much more than
evaluate 1+1 without it going "forever thinking"; it also does not
provide "interactive" inputs to test the tutorial examples, so,
something is wrong there. I also did a quick check of sage -testall,
and it appears there is plenty of debug to do in my patch to use
linbox 1.2.2.
Paulo