Problem with Sympy 1.13.0 ( and gmpy2 gmp mpc mpfr) - sympy.Rational(f2q()) = error !
As a reminder
When creating new docker images (ci_cpu_intel
and ci_gpu_nvidia
) the libgmp-dev
, libmpfr-dev
, libmpc-dev
libraries and the sympy
and gmpy2
python packages were upgraded.
A bug has appeared in the python routine hysop.numerics/remesh/kernel_generator.py
(between lines 414 and 437).
In polynomials created using sympy
, real values appeared, whereas these should have been rational.
To correct this error, the syntax sm.Rational(f2q())
was added to the code for H
, M
arrrays.
However, this function bugs with sympy
version 1.13.0, so we've forced (for the moment) the sympy
version to 1.12.1 in the Dockerfile
of ci_cpu_intel
and ci_gpu_nvidia
.
This solves the problem.
Note that this problem doesn't exist when using micromamba
(based on conda
), because when python packages are installed, they are checked for consistency between packages.
A possible solution is to use only micromamba
in the Dockerfile
of ci_cpu_intel
and ci_gpu_nvidia
!