Ask Your Question
0

Unable to start pari

asked 2016-08-25 09:08:52 +0100

Romuald_314 gravatar image

updated 2016-08-26 10:44:23 +0100

Hi,

I tried this calculation with pari/GP for instance:

%gp factorial(56847)

And I was surprised when it returned:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_4.py", line 10, in <module> exec compile(u"print _support_.syseval(gp, u'factorial(56847)', __SAGE_TMP_DIR__)" + '\n', '', 'single') File "", line 1, in <module>

File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sagenb/misc/support.py", line 438, in syseval return system.eval(cmd, sage_globals, locals = sage_globals) File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1293, in eval for L in code.split('\n') if L != '']) File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/gp.py", line 440, in _eval_line wait_for_prompt=wait_for_prompt) File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 904, in _eval_line self._start() File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/gp.py", line 240, in _start Expect._start(self, alt_message, block_during_init) File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 501, in _start raise RuntimeError("unable to start %s" % self.name()) RuntimeError: unable to start pari

I'll soon get the update 7.3(time for updating the binaries from the depository), but how can I fix that ? Just to clarify: when I start pari in a terminal it works perfectly.

Thx

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-08-25 22:01:01 +0100

Vova gravatar image

Try installing the optional package: gp2c

edit flag offensive delete link more
0

answered 2016-08-26 10:42:29 +0100

Romuald_314 gravatar image

updated 2016-08-26 10:45:15 +0100

So, I finally upgraded PARI/GP to 2.7.6 (I had 2.7.5), I installed gp2c as you said (though I don't think it makes a major change), and now it seems to work with

pari(factorial(big number))

that's the new tip I found to make it work.

However, it still doesn't work with

%gp

command from pari/gp

I'll soon upgrade to SAGE 7.3, I'll see if it fixes this problem.

Thank you even though.

edit flag offensive delete link more

Comments

try installing gmp, then gp2c

Vova gravatar imageVova ( 2016-08-26 19:33:56 +0100 )edit

GMP is already installed since a long time ago.

Romuald_314 gravatar imageRomuald_314 ( 2016-08-27 10:10:27 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-08-25 09:08:52 +0100

Seen: 665 times

Last updated: Aug 26 '16