[Python-modules-team] Bug#730975: sympy: python-gmpy2 breaks sympy

Jan Hlavacek jhlavace at svsu.edu
Sat Nov 30 17:40:53 UTC 2013


Package: python-sympy
Version: 0.7.2-1
Severity: important
File: isympy

Dear Maintainer,

isympy does not run with python-gmpy2 installed on the system.  The traceback
is:

Traceback (most recent call last):
  File "/usr/bin/isympy", line 343, in <module>
    main()
  File "/usr/bin/isympy", line 336, in main
    from sympy.utilities.exceptions import SymPyDeprecationWarning
  File "/usr/lib/python2.7/dist-packages/sympy/__init__.py", line 49, in <module>
    from sympy.core import *
  File "/usr/lib/python2.7/dist-packages/sympy/core/__init__.py", line 8, in <module>
    from expr import Expr, AtomicExpr
  File "/usr/lib/python2.7/dist-packages/sympy/core/expr.py", line 5, in <module>
    from evalf import EvalfMixin, pure_complex
  File "/usr/lib/python2.7/dist-packages/sympy/core/evalf.py", line 5, in <module>
    import sympy.mpmath.libmp as libmp
  File "/usr/lib/python2.7/dist-packages/sympy/mpmath/__init__.py", line 5, in <module>
    from .ctx_fp import FPContext
  File "/usr/lib/python2.7/dist-packages/sympy/mpmath/ctx_fp.py", line 1, in <module>
    from .ctx_base import StandardBaseContext
  File "/usr/lib/python2.7/dist-packages/sympy/mpmath/ctx_base.py", line 3, in <module>
    from .libmp.backend import xrange
  File "/usr/lib/python2.7/dist-packages/sympy/mpmath/libmp/__init__.py", line 1, in <module>
    from .libmpf import (prec_to_dps, dps_to_prec, repr_dps,
  File "/usr/lib/python2.7/dist-packages/sympy/mpmath/libmp/libmpf.py", line 20, in <module>
    from .libintmath import (giant_steps,
  File "/usr/lib/python2.7/dist-packages/sympy/mpmath/libmp/libintmath.py", line 302, in <module>
    sqrtrem = gmpy.sqrtrem
AttributeError: 'module' object has no attribute 'sqrtrem'

removing python-gmpy2 fixes the problem.  

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-rt-amd64 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-sympy depends on:
ii  python     2.7.5-5
ii  python2.7  2.7.6-2

Versions of packages python-sympy recommends:
ii  dvipng                               1.14-2
ii  ipython                              0.13.2-2
ii  python [python-ctypes]               2.7.5-5
ii  python-imaging                       2.2.1-1
ii  python-numpy                         1:1.7.1-3
ii  texlive-local [texlive-fonts-extra]  2011-1~1

python-sympy suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list