Gentoo Archives: gentoo-science

From: "François Bissey" <f.r.bissey@×××××××××.nz>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] [sage-on-gentoo](python-2.6.5-r99)
Date: Thu, 27 May 2010 08:55:42
Message-Id: 201005272055.27353.f.r.bissey@massey.ac.nz
In Reply to: [gentoo-science] [sage-on-gentoo](python-2.6.5-r99) by Steven Trogdon
1 > To those using amd64:
2 >
3 > I first encountered the following when revising sage-core-4.3.5-r1 to
4 > allow backporting from sage-4.4.2 to sage-4.3.5 and it appears with
5 > sage-4.4.2. If I upgrade python to 2.6.5-r99 and rebuild sage-core,
6 > sage will not start. I get:
7 >
8 > ImportError Traceback (most recent call
9 > last)
10 >
11 > /usr/lib64/python2.6/site-packages/IPython/ipmaker.pyc in
12 > force_import(modname, force_reloa
13 > d)
14 > 61 reload(sys.modules[modname])
15 > 62 else:
16 > ---> 63 __import__(modname)
17 > 64
18 > 65
19 >
20 > /opt/sage/local/bin/ipy_profile_sage.py in <module>()
21 > 5 preparser(True)
22 > 6
23 > ----> 7 import sage.all_cmdline
24 > 8 sage.all_cmdline._init_cmdline(globals())
25 > 9
26 >
27 > /usr/lib64/python2.6/site-packages/sage/all_cmdline.py in <module>()
28 > 12 try:
29 > 13
30 > ---> 14 from sage.all import *
31 > 15 from sage.calculus.predefined import x
32 > 16 preparser(on=True)
33 >
34 > /usr/lib64/python2.6/site-packages/sage/all.py in <module>()
35 > 70 get_sigs()
36 > 71
37 > ---> 72 from sage.rings.all import *
38 > 73 from sage.matrix.all import *
39 > 74
40 >
41 > /usr/lib64/python2.6/site-packages/sage/rings/all.py in <module>()
42 > 92
43 > 93 # Algebraic numbers
44 > ---> 94 from qqbar import (AlgebraicRealField, is_AlgebraicRealField,
45 > AA,
46 > 95 AlgebraicReal, is_AlgebraicReal,
47 > 96 AlgebraicField, is_AlgebraicField, QQbar,
48 >
49 > /usr/lib64/python2.6/site-packages/sage/rings/qqbar.py in <module>()
50 > 1414 QQy = QQ['y']
51 > 1415 QQy_y = QQy.gen()
52 > -> 1416 QQxy = QQ['x', 'y']
53 > 1417 QQxy_x = QQxy.gen(0)
54 > 1418 QQxy_y = QQxy.gen(1)
55 >
56 > /usr/lib64/python2.6/site-packages/sage/rings/ring.so in
57 > sage.rings.ring.Ring.__getitem__ (
58 > sage/rings/ring.c:2711)()
59 > 203
60 > 204
61 > --> 205
62 > 206
63 > 207
64 >
65 > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_co
66 > nstructor.py in
67 > PolynomialRing(base_ring, arg1, arg2, sparse, order, names, name,
68 > implementation)
69 > 353 names = arg1
70 > 354 n = len(names)
71 > --> 355 R = _multi_variate(base_ring, names, n, sparse,
72 > order)
73 > 356
74 > 357 if arg1 is None and arg2 is None:
75 >
76 > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_co
77 > nstructor.py in
78 > _multi_variate(base_ring, names, n, sparse, order)
79 > 451 return R
80 > 452
81 > --> 453 from sage.rings.polynomial.multi_polynomial_libsingular
82 > import MPolynomialRing_
83 > libsingular
84 > 454 if m.integral_domain.is_IntegralDomain(base_ring):
85 > 455 if n < 1:
86 >
87 > ImportError:
88 > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/multi_polynomial_l
89 > ibs ingular.so: undefined symbol: _Z7_p_TestP8spolyrecP9sip_sringi
90 > Error importing ipy_profile_sage - perhaps you should run %upgrade?
91 > WARNING: Loading of ipy_profile_sage failed.
92 >
93 > and if I re-emerge sage I get:
94 >
95 > Setting permissions of DOT_SAGE directory so only you can read and
96 > write it.
97 > Traceback (most recent call last):
98 > File "/opt/sage/local/bin/sage-eval", line 4, in <module>
99 > from sage.all import *
100 > File "/usr/lib64/python2.6/site-packages/sage/all.py", line 72, in
101 > <module>
102 > from sage.rings.all import *
103 > File "/usr/lib64/python2.6/site-packages/sage/rings/all.py", line
104 > 90, in <module>
105 > from qqbar import (AlgebraicRealField, is_AlgebraicRealField, AA,
106 > File "/usr/lib64/python2.6/site-packages/sage/rings/qqbar.py", line
107 > 1412, in <modul
108 > e>
109 > QQxy = QQ['x', 'y']
110 > File "ring.pyx", line 205, in sage.rings.ring.Ring.__getitem__
111 > (sage/rings/ring.c:2
112 > 550)
113 > File
114 > "/usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_c
115 > ons tructor.py", line 355, in PolynomialRing
116 > R = _multi_variate(base_ring, names, n, sparse, order)
117 > File
118 > "/usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_c
119 > ons tructor.py", line 453, in _multi_variate
120 > from sage.rings.polynomial.multi_polynomial_libsingular import
121 > MPolynomialRing_li
122 > bsingular
123 > ImportError:
124 > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/multi_polynomia
125 > l_libsingular.so: undefined symbol: _Z7_p_TestP8spolyrecP9sip_sringi
126 >
127 >
128 > I could have overlooked something. I rebuilt cython with no effect.
129 > This is somewhat similar to a problem that was solved by appending
130 > "-fno-strict-aliasing" to the flags in sage-core; which is still there.
131 > None of this is present with python-2.6.4-r99.
132 >
133 Hi Steve,
134
135 I hit that myself a few hours ago with 4.4.2 on ppc.
136 Not quite sure what to do about it yet. Python-2.6.5-r2 has gone stable on ppc
137 and it is coming very fast to other arch so we better find what happens.
138 I probably need to do one more syncing with 2.6.5-r2 but I don't think that's
139 related.
140
141 Francois