FS#12 : [python-setuptools] check() fails (due to some mpmath issue?)
  • Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Packages ā†’ Packages: Build-list
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority Medium
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Archlinux32
Opened by Erich Eckner - 15.11.2017
Last edited by Andreas Baumann - 02.10.2019

FS#12 - [python-setuptools] check() fails (due to some mpmath issue?)

during check():
_ sympy/polys/tests/test_rootoftools.py:test_CRootOf_evalf _

File "/build/python-sympy/src/sympy-sympy-1.1.1-py2/sympy/polys/tests/test_rootoftools.py", line 225, in test_CRootOf_evalf
  a, b = rootof(eq, 1).n(2).as_real_imag()
File "sympy/core/evalf.py", line 1394, in evalf
  result = evalf(self, prec + 4, options)
File "sympy/core/evalf.py", line 1292, in evalf
  xe = x._eval_evalf(prec)
File "sympy/polys/rootoftools.py", line 644, in _eval_evalf
  x0 = mpc(*map(str, interval.center))
File "/usr/lib/python2.7/site-packages/mpmath/ctx_mp_python.py", line 374, in __new__
  imag = cls.context.mpf(imag)
File "/usr/lib/python2.7/site-packages/mpmath/ctx_mp_python.py", line 77, in __new__
  v._mpf_ = mpf_pos(cls.mpf_convert_arg(val, prec, rounding), prec, rounding)
File "/usr/lib/python2.7/site-packages/mpmath/ctx_mp_python.py", line 84, in mpf_convert_arg
  if isinstance(x, basestring): return from_str(x, prec, rounding)
File "/usr/lib/python2.7/site-packages/mpmath/libmp/libmpf.py", line 1300, in from_str
  return from_rational(int(p), int(q), prec, rnd)

ValueError: invalid literal for int() with base 10: ā€˜-2163048125Lā€™

tests finished: 6841 passed, 185 skipped, 1 exceptions, in 4352.49 seconds


test process starts

executable: /usr/bin/python2 (2.7.14-final-0) [CPython]
architecture: 32-bit
cache: yes
ground types: gmpy 2.0.8
hash randomization: on (PYTHONHASHSEED=3003103148)

Closed by  Andreas Baumann
02.10.2019 19:15
Reason for closing:  Fixed
Additional comments about closing:  

Seems to run the tests just fine on i686 and pentium4.


Available keyboard shortcuts


Task Details

Task Editing