The Active Matter Evaluation Package (AMEP) - a Python library for the analysis of particle-based and continuum simulation data of soft and active matter systems
The distutils library is used in the module amep.plot but is not part of Python 3.12 anymore. Therefore, using AMEP within Python 3.12 raises an error.
Code for reproduction:
import amep
Error message:
Python and AMEP versions:
python 3.12
amep 1.0.0
Additional information:
Solution:
Replace from distutils.spawn import find_executable with from shutil import which.
Replace if find_executable('latex'): with if which('latex'):.
Description:
The
distutils
library is used in the moduleamep.plot
but is not part of Python 3.12 anymore. Therefore, using AMEP within Python 3.12 raises an error.Code for reproduction:
Error message:
Python and AMEP versions:
python 3.12 amep 1.0.0
Additional information:
Solution:
Replace
from distutils.spawn import find_executable
withfrom shutil import which
.Replace
if find_executable('latex'):
withif which('latex'):
.How did you install AMEP?
pip