Hello!
On Thu, 16 Aug 2012 10:03:16 +1200
[email protected] wrote:
> From a python (2.7) shell, what happens if you do
>
> import mpmath
>
>>> import mpmath
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/mpmath/__init__.py", line
10, in <module> mp = MPContext()
File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 72,
in __init__ ctx.init_builtins()
File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 101,
in init_builtins ctx.one = ctx.make_mpf(fone)
File "ext_main.pyx", line 493, in
sage.libs.mpmath.ext_main.Context.make_mpf
(sage/libs/mpmath/ext_main.c:6425)
File "ext_main.pyx", line 503, in
sage.libs.mpmath.ext_main.Context.make_mpf
(sage/libs/mpmath/ext_main.c:6360)
File "ext_impl.pyx", line 268, in
sage.libs.mpmath.ext_impl.MPF_set_tuple
(sage/libs/mpmath/ext_impl.c:3845)
File "integer.pyx", line 752, in
sage.rings.integer.Integer.__init__ (sage/rings/integer.c:7812)
TypeError: unable to coerce <type 'mpz'> to an integer
>>>
> import sympy
>
>>> import sympy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/sympy/__init__.py", line 20,
in <module> from sympy.core import *
File "/usr/lib64/python2.7/site-packages/sympy/core/__init__.py",
line 8, in <module> from expr import Expr, AtomicExpr
File "/usr/lib64/python2.7/site-packages/sympy/core/expr.py", line 4,
in <module> from evalf import EvalfMixin
File "/usr/lib64/python2.7/site-packages/sympy/core/evalf.py", line
6, in <module> import mpmath.libmp as libmp
File "/usr/lib64/python2.7/site-packages/mpmath/__init__.py", line
10, in <module> mp = MPContext()
File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 72,
in __init__ ctx.init_builtins()
File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 101,
in init_builtins ctx.one = ctx.make_mpf(fone)
File "ext_main.pyx", line 493, in
sage.libs.mpmath.ext_main.Context.make_mpf
(sage/libs/mpmath/ext_main.c:6425)
File "ext_main.pyx", line 503, in
sage.libs.mpmath.ext_main.Context.make_mpf
(sage/libs/mpmath/ext_main.c:6360)
File "ext_impl.pyx", line 268, in
sage.libs.mpmath.ext_impl.MPF_set_tuple
(sage/libs/mpmath/ext_impl.c:3845)
File "integer.pyx", line 752, in
sage.rings.integer.Integer.__init__ (sage/rings/integer.c:7812)
TypeError: unable to coerce <type 'mpz'> to an integer
> ?
> Also do you you have any problem emerging mpmath.
No, I do not have any problems emerging mpmath. At least emerge does
not report of any problems during installation.
Regards,
Vladimir
-----
<[email protected]>