Gentoo Archives: gentoo-science

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

Replies

Subject Author
Re: [gentoo-science] [sage-on-gentoo] cannot build Sage because of Sympy-0.7.1 Francois Bissey <fbissey@××××××××××××.nz>