ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 27 Aug 2016 10:10:27 +0200Unable to start parihttps://ask.sagemath.org/question/34578/unable-to-start-pari/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.
ThxThu, 25 Aug 2016 09:08:52 +0200https://ask.sagemath.org/question/34578/unable-to-start-pari/Answer by Vova for <p>Hi,</p>
<p>I tried this calculation with pari/GP for instance:</p>
<p>%gp
factorial(56847)</p>
<p>And I was surprised when it returned:</p>
<blockquote>
<p>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></p>
<p>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</p>
</blockquote>
<p>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.</p>
<p>Thx</p>
https://ask.sagemath.org/question/34578/unable-to-start-pari/?answer=34585#post-id-34585Try installing the optional package: gp2cThu, 25 Aug 2016 22:01:01 +0200https://ask.sagemath.org/question/34578/unable-to-start-pari/?answer=34585#post-id-34585Answer by Romuald_314 for <p>Hi,</p>
<p>I tried this calculation with pari/GP for instance:</p>
<p>%gp
factorial(56847)</p>
<p>And I was surprised when it returned:</p>
<blockquote>
<p>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></p>
<p>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</p>
</blockquote>
<p>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.</p>
<p>Thx</p>
https://ask.sagemath.org/question/34578/unable-to-start-pari/?answer=34590#post-id-34590So, 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.Fri, 26 Aug 2016 10:42:29 +0200https://ask.sagemath.org/question/34578/unable-to-start-pari/?answer=34590#post-id-34590Comment by Vova for <p>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</p>
<blockquote>
<p>pari(factorial(big number))</p>
</blockquote>
<p>that's the new tip I found to make it work.</p>
<p>However, it still doesn't work with</p>
<blockquote>
<p>%gp</p>
<p>command from pari/gp</p>
</blockquote>
<p>I'll soon upgrade to SAGE 7.3, I'll see if it fixes this problem.</p>
<p>Thank you even though.</p>
https://ask.sagemath.org/question/34578/unable-to-start-pari/?comment=34600#post-id-34600try installing gmp, then gp2cFri, 26 Aug 2016 19:33:56 +0200https://ask.sagemath.org/question/34578/unable-to-start-pari/?comment=34600#post-id-34600Comment by Romuald_314 for <p>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</p>
<blockquote>
<p>pari(factorial(big number))</p>
</blockquote>
<p>that's the new tip I found to make it work.</p>
<p>However, it still doesn't work with</p>
<blockquote>
<p>%gp</p>
<p>command from pari/gp</p>
</blockquote>
<p>I'll soon upgrade to SAGE 7.3, I'll see if it fixes this problem.</p>
<p>Thank you even though.</p>
https://ask.sagemath.org/question/34578/unable-to-start-pari/?comment=34606#post-id-34606GMP is already installed since a long time ago.Sat, 27 Aug 2016 10:10:27 +0200https://ask.sagemath.org/question/34578/unable-to-start-pari/?comment=34606#post-id-34606