Status: Accepted Owner: ondrej.certik CC: fredrik.johansson Labels: Type-Defect Priority-Medium
New issue 1865 by ondrej.certik: mpmath in sympy fails in Sage http://code.google.com/p/sympy/issues/detail?id=1865 $ sage -python bin/test sympy/test_external/test_sage.py Traceback (most recent call last): File "bin/test", line 16, in <module> import sympy File "/home/ondrej/repos/sympy/sympy/__init__.py", line 22, in <module> from sympy.core import * File "/home/ondrej/repos/sympy/sympy/core/__init__.py", line 4, in <module> from basic import Basic, S, C, sympify File "/home/ondrej/repos/sympy/sympy/core/basic.py", line 3, in <module> import sympy.mpmath as mpmath File "/home/ondrej/repos/sympy/sympy/mpmath/__init__.py", line 5, in <module> from ctx_fp import FPContext File "/home/ondrej/repos/sympy/sympy/mpmath/ctx_fp.py", line 1, in <module> from ctx_base import StandardBaseContext File "/home/ondrej/repos/sympy/sympy/mpmath/ctx_base.py", line 12, in <module> from identification import IdentificationMethods File "/home/ondrej/repos/sympy/sympy/mpmath/identification.py", line 6, in <module> from libmp import int_types, sqrt_fixed File "/home/ondrej/repos/sympy/sympy/mpmath/libmp/__init__.py", line 1, in <module> from libmpf import (prec_to_dps, dps_to_prec, repr_dps, File "/home/ondrej/repos/sympy/sympy/mpmath/libmp/libmpf.py", line 18, in <module> from libintmath import (giant_steps, File "/home/ondrej/repos/sympy/sympy/mpmath/libmp/libintmath.py", line 99, in <module> sage_bitcount = sage_utils.bitcount AttributeError: 'module' object has no attribute 'bitcount' Apparently some Sage specific code in mpmath fails. Fredrik, any ideas how to fix this? Currently sympy doesn't even import in sage, which is a problem. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-iss...@googlegroups.com. To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.