mpmath: mpmath creates Memory Error on import
I wasn’t able to determine the reason, but it seems that when importing mpmath with gmp=6.2.0 it creates a Memory Error during this operation:
mpmath/mpmath/libmp/libelefun.py
# ~= next power of two + 20
cache_prec_steps = [22,22]
for k in xrange(1, bitcount(LOG_TAYLOR_PREC)+1):
cache_prec_steps += [min(2**k,LOG_TAYLOR_PREC)+20] * 2**(k-1)
When I downgraded gmp<=6.1.2.
mpmath imported successfully.
Stack trace is unavailable. If I am able to reproduce behavior I will attach.
python 3.7.6 gmpy2 2.1.0b1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15
I can confirm that the 6.2.0 build 1 packages (conda-forge/linux-64::gmp-6.2.0-he1b5a44_1) give the expect results for the test program and the python test.