1 |
On Fri, 17 Aug 2012 12:20:12 v_2e@×××.net wrote: |
2 |
> Hello! |
3 |
> |
4 |
> On Fri, 17 Aug 2012 09:32:18 +1200 |
5 |
> |
6 |
> fbissey@××××××××××××.nz wrote: |
7 |
> > OK wrong assumption from me by looking at the code. You have probably |
8 |
> > enabled the gmp useflag in mpmath and now you have gmpy on your |
9 |
> > system. I am now fairly |
10 |
> > sure that gmpy is the cause of the problem. |
11 |
> > Like sage gmpy can be autoloaded by mpmath but if both are present at |
12 |
> > the same time you get the confusion that you have seen. |
13 |
> |
14 |
> Yes, the 'gmp' USE-flag is enabled for 'mpmath'. |
15 |
> |
16 |
> > As a quick check you can try: MPMATH_NOGMPY=1 emerge -1v sympy |
17 |
> > that should work. Adding that variable to sage-env may help with |
18 |
> > potential problems importing mpmath or sympy in sage but really |
19 |
> > mpmath has to change their default behavior. |
20 |
> |
21 |
> So what do I have to do to have a working Sage? Do I have to rebuild |
22 |
> 'mpmath' with the 'gmp' USE-flag disabled? |
23 |
> |
24 |
Best solution: rebuild mpmath without the gmp useflag and remove gmpy. |
25 |
Rebuilding is not enough as the flag only insure that gmpy is installed. |
26 |
mpmath autodetect gmpy's presence all by itself if it is present - gmp flag or |
27 |
not. |
28 |
|
29 |
If you don't want to do that you'll have to export MPMATH_NOGMPY=1 |
30 |
before using sage or emerging sympy or importing sympy or mpmath |
31 |
from the python shell. |
32 |
|
33 |
Francois |