1 |
On 10/19/10 - 04:45:49, François Bissey wrote: |
2 |
|
3 |
> Thank you Steve, |
4 |
> |
5 |
> Could you send me the result of |
6 |
> printenv | grep SAGE |
7 |
> from the machine running sage-4.5.3. |
8 |
|
9 |
printenv | grep SAGE gives (on _all_ installations) |
10 |
|
11 |
|
12 |
SAGE_DATA=/usr/share/sage/data |
13 |
SAGE_BROWSER=/usr/bin/firefox |
14 |
SAGE_LOCAL=/usr |
15 |
SAGE_ROOT=/usr/share/sage |
16 |
SAGE_DOC=/usr/share/sage/devel/sage/doc |
17 |
|
18 |
|
19 |
For mpmath with sage-4.6alpha3 |
20 |
> I was expecting this error: |
21 |
> >>> import mpmath |
22 |
> Traceback (most recent call last): |
23 |
> File "<stdin>", line 1, in <module> |
24 |
> File "/usr/lib/python2.6/site-packages/mpmath/__init__.py", line 6, |
25 |
> in |
26 |
> <module> |
27 |
> from ctx_mp import MPContext |
28 |
> File "/usr/lib/python2.6/site-packages/mpmath/ctx_mp.py", line 48, |
29 |
> in |
30 |
> <module> |
31 |
> from sage.libs.mpmath.ext_main import Context as BaseMPContext |
32 |
> File "integer.pxd", line 9, in init sage.libs.mpmath.ext_main |
33 |
> (sage/libs/mpmath/ext_main.c:22894) |
34 |
> File "integer.pyx", line 165, in init sage.rings.integer |
35 |
> (sage/rings/integer.c:33926) |
36 |
> File "/usr/lib/python2.6/site-packages/sage/rings/infinity.py", |
37 |
> line 200, in |
38 |
> <module> |
39 |
> import sage.rings.rational |
40 |
> File "rational.pyx", line 70, in init sage.rings.rational |
41 |
> (sage/rings/rational.c:25264) |
42 |
> File "real_mpfr.pyx", line 1, in init sage.rings.real_mpfr |
43 |
> (sage/rings/real_mpfr.c:31325) |
44 |
> File "complex_number.pxd", line 8, in init sage.libs.mpmath.utils |
45 |
> (sage/libs/mpmath/utils.c:7374) |
46 |
> File "complex_double.pxd", line 13, in init |
47 |
> sage.rings.complex_number |
48 |
> (sage/rings/complex_number.c:18312) |
49 |
> File "complex_double.pyx", line 95, in init |
50 |
> sage.rings.complex_double |
51 |
> (sage/rings/complex_double.c:16534) |
52 |
> File |
53 |
> "/usr/lib/python2.6/site-packages/sage/rings/complex_field.py", line |
54 |
> 89, |
55 |
> in ComplexField |
56 |
> C = ComplexField_class(prec) |
57 |
> File |
58 |
> "/usr/lib/python2.6/site-packages/sage/rings/complex_field.py", line |
59 |
> 187, in __init__ |
60 |
> ParentWithGens.__init__(self, self._real_field(), ('I',), False, |
61 |
> category = |
62 |
> Fields()) |
63 |
> File |
64 |
> "/usr/lib/python2.6/site-packages/sage/rings/complex_field.py", line |
65 |
> 240, in _real_field |
66 |
> self.__real_field = real_mpfr.RealField(self._prec) |
67 |
> File "real_mpfr.pyx", line 267, in sage.rings.real_mpfr.RealField |
68 |
> (sage/rings/real_mpfr.c:4222) |
69 |
> TypeError: 'NoneType' object is unsubscriptable |
70 |
> > |
71 |
> |
72 |
> ---------------- |
73 |
> I posted about it on the sage-release, where we talk about the |
74 |
> sage-4.6 pre |
75 |
> releases, and no one else has the problem so far. If you don't have |
76 |
> it either |
77 |
> that may be a problem on my machine. |
78 |
> |
79 |
> Francois |
80 |
> |
81 |
|
82 |
I don't get the above with an import of mpmath. Just a thought, could |
83 |
it be mpfr-related. I'm using |
84 |
mpfr-2.4.2_p3 here. |
85 |
|
86 |
Steve |