#7575: Sage's interface with mwrank needs serious work
-------------------------------+--------------------------------------------
Reporter: rlm | Owner: cremona
Type: defect | Status: needs_info
Priority: major | Milestone: sage-4.3.1
Component: elliptic curves | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Comment(by rlm):
Here is another part where using the library would help:
{{{
sage: EllipticCurve([1, 1, 1, -9718914979, 370891890941633]).mwrank()
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (47, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (362, 0))
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
/Users/rlmill/sage-4.3.1.rc1/devel/sage-main/<ipython console> in
<module>()
/Users/rlmill/sage-4.3.1.rc1/local/lib/python2.6/site-
packages/sage/schemes/elliptic_curves/ell_rational_field.pyc in
mwrank(self, options)
484 from sage.interfaces.all import Mwrank
485 mwrank = Mwrank(options=options)
--> 486 return mwrank(list(self.a_invariants()))
487
488 def conductor(self, algorithm="pari"):
/Users/rlmill/sage-4.3.1.rc1/local/lib/python2.6/site-
packages/sage/interfaces/mwrank.pyc in __call__(self, cmd)
75
76 def __call__(self, cmd):
---> 77 return self.eval(str(cmd))
78
79 def eval(self, *args, **kwds):
/Users/rlmill/sage-4.3.1.rc1/local/lib/python2.6/site-
packages/sage/interfaces/mwrank.pyc in eval(self, *args, **kwds)
95 # Doing _start again fixes that always. See trac
#5157.
96 self._start()
---> 97 return Expect.eval(self, *args, **kwds)
98
99 def console(self):
/Users/rlmill/sage-4.3.1.rc1/local/lib/python2.6/site-
packages/sage/interfaces/expect.pyc in eval(self, code, strip,
synchronize, locals, **kwds)
981 try:
982 with gc_disabled():
--> 983 return '\n'.join([self._eval_line(L, **kwds) for L
in code.split('\n') if L != ''])
984 except KeyboardInterrupt:
985 # DO NOT CATCH KeyboardInterrupt, as it is being
caught
/Users/rlmill/sage-4.3.1.rc1/local/lib/python2.6/site-
packages/sage/interfaces/expect.pyc in _eval_line(self, line,
allow_use_file, wait_for_prompt)
666 # we expect to get an EOF if we're
quitting.
667 return ''
--> 668 raise RuntimeError, "%s\n%s crashed executing
%s"%(msg,self, line)
669 out = E.before
670 else:
RuntimeError: End Of File (EOF) in read_nonblocking(). Empty string style
platform.
<pexpect.spawn instance at 0xebec738>
version: 2.0 ($Revision: 1.151 $)
command: /Users/rlmill/sage-4.3.1.rc1/local/bin/mwrank
args: ['/Users/rlmill/sage-4.3.1.rc1/local/bin/mwrank']
patterns:
Enter curve:
buffer (last 100 chars):
before (last 100 chars): up to 232549 (square a first...)
Attempt to round -9608958007.0937 to a long int fails, aborting!
after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: 1
pid: 90387
child_fd: 7
timeout: None
delimiter: <class 'pexpect.EOF'>
logfile: None
maxread: 10000
searchwindowsize: None
delaybeforesend: 0
Mwrank crashed executing [1, 1, 1, -9718914979, 370891890941633]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7575#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.