GADMA icon indicating copy to clipboard operation
GADMA copied to clipboard

Failure to draw plots when using moments engine

Open Robb-ED opened this issue 9 months ago • 1 comments

Hi! I've been experimenting with using GADMA (specifically the moments engine) for some analyses, but unfortunately haven't been able to get any plots to generate. Things run fine initially, but when GADMA finishes I get the following error:

INFO: Some numerics (100.00%) for the best model were failed. If this is the end of GADMA run then it is better to run more repeats. Run 2 warning: failed to draw model due to the following exception: module 'matplotlib.cbook' has no attribute 'MatplotlibDeprecationWarning'. Run 2 warning: failed to generate some code due to the following exception: demes: time_units=="generations", but generation_time!=1

I'm running GADMA 2.0.2 in an Anaconda 2024.02-1 environment.

I was wondering if you might be able to provide any insight into what has gone wrong? I'm still fairly new to GADMA and bioinformatics in general, so I apologise if I am missing something obvious!

Robb-ED avatar Apr 21 '25 01:04 Robb-ED

Hi @Robb-ED,

Thank you for your feedback. Unfortunately, the issue is that moments drawing works only with some specific versions of matplotlib. If you run pip install "matplotlib<=3.7.5", that should solve the issue.

Best regards, Ekaterina

noscode avatar May 21 '25 12:05 noscode