1 | [xxxxxxx@MacBook-Pro-xxxxxxx: ~]$ ipython |
---|
2 | Python 2.7.6 (default, Nov 14 2013, 08:46:28) |
---|
3 | Type "copyright", "credits" or "license" for more information. |
---|
4 | |
---|
5 | IPython 1.1.0 -- An enhanced Interactive Python. |
---|
6 | ? -> Introduction and overview of IPython's features. |
---|
7 | %quickref -> Quick reference. |
---|
8 | help -> Python's own help system. |
---|
9 | object? -> Details about 'object', use 'object??' for extra details. |
---|
10 | |
---|
11 | In [1]: import mpmath |
---|
12 | --------------------------------------------------------------------------- |
---|
13 | AttributeError Traceback (most recent call last) |
---|
14 | <ipython-input-1-a31c8221febe> in <module>() |
---|
15 | ----> 1 import mpmath |
---|
16 | |
---|
17 | /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/__init__.py in <module>() |
---|
18 | 3 from .usertools import monitor, timing |
---|
19 | 4 |
---|
20 | ----> 5 from .ctx_fp import FPContext |
---|
21 | 6 from .ctx_mp import MPContext |
---|
22 | 7 from .ctx_iv import MPIntervalContext |
---|
23 | |
---|
24 | /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/ctx_fp.py in <module>() |
---|
25 | ----> 1 from .ctx_base import StandardBaseContext |
---|
26 | 2 |
---|
27 | 3 import math |
---|
28 | 4 import cmath |
---|
29 | 5 from . import math2 |
---|
30 | |
---|
31 | /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/ctx_base.py in <module>() |
---|
32 | 1 from operator import gt, lt |
---|
33 | 2 |
---|
34 | ----> 3 from .libmp.backend import xrange |
---|
35 | 4 |
---|
36 | 5 from .functions.functions import SpecialFunctions |
---|
37 | |
---|
38 | /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/libmp/__init__.py in <module>() |
---|
39 | ----> 1 from .libmpf import (prec_to_dps, dps_to_prec, repr_dps, |
---|
40 | 2 round_down, round_up, round_floor, round_ceiling, round_nearest, |
---|
41 | 3 to_pickable, from_pickable, ComplexResult, |
---|
42 | 4 fzero, fnzero, fone, fnone, ftwo, ften, fhalf, fnan, finf, fninf, |
---|
43 | 5 math_float_inf, round_int, normalize, normalize1, |
---|
44 | |
---|
45 | /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/libmp/libmpf.py in <module>() |
---|
46 | 18 BACKEND, STRICT, HASH_MODULUS, HASH_BITS, gmpy, sage, sage_utils) |
---|
47 | 19 |
---|
48 | ---> 20 from .libintmath import (giant_steps, |
---|
49 | 21 trailtable, bctable, lshift, rshift, bitcount, trailing, |
---|
50 | 22 sqrt_fixed, numeral, isqrt, isqrt_fast, sqrtrem, |
---|
51 | |
---|
52 | /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/libmp/libintmath.py in <module>() |
---|
53 | 300 if BACKEND == 'gmpy': |
---|
54 | 301 isqrt_small = isqrt_fast = isqrt = gmpy.sqrt |
---|
55 | --> 302 sqrtrem = gmpy.sqrtrem |
---|
56 | 303 elif BACKEND == 'sage': |
---|
57 | 304 isqrt_small = isqrt_fast = isqrt = \ |
---|
58 | |
---|
59 | AttributeError: 'module' object has no attribute 'sqrtrem' |
---|