Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477098 - dev-python/mpmath-0.17 should depend on dev-python/gmpy:0
Summary: dev-python/mpmath-0.17 should depend on dev-python/gmpy:0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 18:45 UTC by Henry Gebhardt
Modified: 2013-07-18 15:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Gebhardt 2013-07-16 18:45:33 UTC
mpmath-0.17 does not work with gmpy2, because sqrtrem() was renamed to isqrt_rem() in gmpy2. There is a patch in the upstream repository for mpmath (revision 1235), but no release yet.

Please either patch mpmath-0.17, or depend on dev-python/gmpy:0.

Reproducible: Always

Steps to Reproduce:
1. import mpmath
Actual Results:  
>>> import mpmath
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/mpmath/__init__.py", line 5, in <module>
    from .ctx_fp import FPContext
  File "/usr/lib64/python2.7/site-packages/mpmath/ctx_fp.py", line 1, in <module>
    from .ctx_base import StandardBaseContext
  File "/usr/lib64/python2.7/site-packages/mpmath/ctx_base.py", line 3, in <module>
    from .libmp.backend import xrange
  File "/usr/lib64/python2.7/site-packages/mpmath/libmp/__init__.py", line 1, in <module>
    from .libmpf import (prec_to_dps, dps_to_prec, repr_dps,
  File "/usr/lib64/python2.7/site-packages/mpmath/libmp/libmpf.py", line 20, in <module>
    from .libintmath import (giant_steps,
  File "/usr/lib64/python2.7/site-packages/mpmath/libmp/libintmath.py", line 302, in <module>
    sqrtrem = gmpy.sqrtrem
AttributeError: 'module' object has no attribute 'sqrtrem'


Expected Results:  
Import successfully!
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-07-18 07:37:50 UTC
Could you please point us to the patch?
I tried mpmath with both SLOT 0 and 2 of gmpy installed and it failed. Only if I removed SLOT 2 it worked.
Comment 2 Henry Gebhardt 2013-07-18 13:57:56 UTC
(In reply to Justin Lecher from comment #1)
> Could you please point us to the patch?

http://code.google.com/p/mpmath/source/detail?r=1235

I am not sure where to download a patch. If you want me to, I can download the svn repository and create one.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-07-18 15:18:41 UTC
+*mpmath-0.17-r1 (18 Jul 2013)
+
+  18 Jul 2013; Justin Lecher <jlec@gentoo.org> +mpmath-0.17-r1.ebuild,
+  +files/mpmath-0.17-gmpy2.patch:
+  Backport compatibility for gmpy-2, #477098
+