First time here? Check out the FAQ!

Ask Your Question
0

Unable to start pari

asked 8 years ago

Romuald_314 gravatar image

updated 8 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 8 years ago

Vova gravatar image

Try installing the optional package: gp2c

Preview: (hide)
link
0

answered 8 years ago

Romuald_314 gravatar image

updated 8 years ago

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.

Preview: (hide)
link

Comments

try installing gmp, then gp2c

Vova gravatar imageVova ( 8 years ago )

GMP is already installed since a long time ago.

Romuald_314 gravatar imageRomuald_314 ( 8 years ago )

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: 8 years ago

Seen: 835 times

Last updated: Aug 26 '16