Ask Your Question

Unable to start pari

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

Romuald_314 gravatar image

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


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 "", 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/", 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/", line 1293, in eval for L in code.split('\n') if L != '']) File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/", line 440, in _eval_line wait_for_prompt=wait_for_prompt) File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/", line 904, in _eval_line self._start() File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/", line 240, in _start Expect._start(self, alt_message, block_during_init) File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/interfaces/", line 501, in _start raise RuntimeError("unable to start %s" % 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.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

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

Vova gravatar image

Try installing the optional package: gp2c

edit flag offensive delete link more

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

Romuald_314 gravatar image

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

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


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


try installing gmp, then gp2c

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

GMP is already installed since a long time ago.

Romuald_314 gravatar imageRomuald_314 ( 2016-08-27 10:10:27 +0200 )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


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

Seen: 523 times

Last updated: Aug 26 '16