Gentoo Archives: gentoo-science

From: Francois Bissey <fbissey@××××××××××××.nz>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] [sage-on-gentoo] cannot build Sage because of Sympy-0.7.1
Date: Thu, 16 Aug 2012 12:02:55
Message-Id: 3918646.x0op0JfapO@vrooom-vrooom
In Reply to: Re: [gentoo-science] [sage-on-gentoo] cannot build Sage because of Sympy-0.7.1 by v_2e@ukr.net
1 On Thu, 16 Aug 2012 11:05:36 v_2e@×××.net wrote:
2 > Hello!
3 >
4 > On Thu, 16 Aug 2012 10:03:16 +1200
5 >
6 > fbissey@××××××××××××.nz wrote:
7 > > From a python (2.7) shell, what happens if you do
8 > >
9 > > import mpmath
10 > >
11 > >>> import mpmath
12 >
13 > Traceback (most recent call last):
14 > File "<stdin>", line 1, in <module>
15 > File "/usr/lib64/python2.7/site-packages/mpmath/__init__.py", line
16 > 10, in <module> mp = MPContext()
17 > File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 72,
18 > in __init__ ctx.init_builtins()
19 > File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 101,
20 > in init_builtins ctx.one = ctx.make_mpf(fone)
21 > File "ext_main.pyx", line 493, in
22 > sage.libs.mpmath.ext_main.Context.make_mpf
23 > (sage/libs/mpmath/ext_main.c:6425)
24 > File "ext_main.pyx", line 503, in
25 > sage.libs.mpmath.ext_main.Context.make_mpf
26 > (sage/libs/mpmath/ext_main.c:6360)
27 > File "ext_impl.pyx", line 268, in
28 > sage.libs.mpmath.ext_impl.MPF_set_tuple
29 > (sage/libs/mpmath/ext_impl.c:3845)
30 > File "integer.pyx", line 752, in
31 > sage.rings.integer.Integer.__init__ (sage/rings/integer.c:7812)
32 > TypeError: unable to coerce <type 'mpz'> to an integer
33 >
34 > > import sympy
35 > >
36 > >>> import sympy
37 >
38 > Traceback (most recent call last):
39 > File "<stdin>", line 1, in <module>
40 > File "/usr/lib64/python2.7/site-packages/sympy/__init__.py", line 20,
41 > in <module> from sympy.core import *
42 > File "/usr/lib64/python2.7/site-packages/sympy/core/__init__.py",
43 > line 8, in <module> from expr import Expr, AtomicExpr
44 > File "/usr/lib64/python2.7/site-packages/sympy/core/expr.py", line 4,
45 > in <module> from evalf import EvalfMixin
46 > File "/usr/lib64/python2.7/site-packages/sympy/core/evalf.py", line
47 > 6, in <module> import mpmath.libmp as libmp
48 > File "/usr/lib64/python2.7/site-packages/mpmath/__init__.py", line
49 > 10, in <module> mp = MPContext()
50 > File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 72,
51 > in __init__ ctx.init_builtins()
52 > File "/usr/lib64/python2.7/site-packages/mpmath/ctx_mp.py", line 101,
53 > in init_builtins ctx.one = ctx.make_mpf(fone)
54 > File "ext_main.pyx", line 493, in
55 > sage.libs.mpmath.ext_main.Context.make_mpf
56 > (sage/libs/mpmath/ext_main.c:6425)
57 > File "ext_main.pyx", line 503, in
58 > sage.libs.mpmath.ext_main.Context.make_mpf
59 > (sage/libs/mpmath/ext_main.c:6360)
60 > File "ext_impl.pyx", line 268, in
61 > sage.libs.mpmath.ext_impl.MPF_set_tuple
62 > (sage/libs/mpmath/ext_impl.c:3845)
63 > File "integer.pyx", line 752, in
64 > sage.rings.integer.Integer.__init__ (sage/rings/integer.c:7812)
65 > TypeError: unable to coerce <type 'mpz'> to an integer
66 >
67 > > ?
68 > > Also do you you have any problem emerging mpmath.
69 >
70 > No, I do not have any problems emerging mpmath. At least emerge does
71 > not report of any problems during installation.
72 >
73 you have numpy-1.6.xx installed don't you? I am adding that to the list of
74 pains related to the fact we are stuck with numpy-1.5
75
76 Francois

Replies