[xxxxxxx@MacBook-Pro-xxxxxxx: ~]$ ipython Python 2.7.6 (default, Nov 14 2013, 08:46:28) Type "copyright", "credits" or "license" for more information. IPython 1.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import mpmath --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in () ----> 1 import mpmath /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/__init__.py in () 3 from .usertools import monitor, timing 4 ----> 5 from .ctx_fp import FPContext 6 from .ctx_mp import MPContext 7 from .ctx_iv import MPIntervalContext /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/ctx_fp.py in () ----> 1 from .ctx_base import StandardBaseContext 2 3 import math 4 import cmath 5 from . import math2 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/ctx_base.py in () 1 from operator import gt, lt 2 ----> 3 from .libmp.backend import xrange 4 5 from .functions.functions import SpecialFunctions /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/libmp/__init__.py in () ----> 1 from .libmpf import (prec_to_dps, dps_to_prec, repr_dps, 2 round_down, round_up, round_floor, round_ceiling, round_nearest, 3 to_pickable, from_pickable, ComplexResult, 4 fzero, fnzero, fone, fnone, ftwo, ften, fhalf, fnan, finf, fninf, 5 math_float_inf, round_int, normalize, normalize1, /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/libmp/libmpf.py in () 18 BACKEND, STRICT, HASH_MODULUS, HASH_BITS, gmpy, sage, sage_utils) 19 ---> 20 from .libintmath import (giant_steps, 21 trailtable, bctable, lshift, rshift, bitcount, trailing, 22 sqrt_fixed, numeral, isqrt, isqrt_fast, sqrtrem, /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpmath/libmp/libintmath.py in () 300 if BACKEND == 'gmpy': 301 isqrt_small = isqrt_fast = isqrt = gmpy.sqrt --> 302 sqrtrem = gmpy.sqrtrem 303 elif BACKEND == 'sage': 304 isqrt_small = isqrt_fast = isqrt = \ AttributeError: 'module' object has no attribute 'sqrtrem'