tschuelia / PyPythia

Lightweight python library for predicting the difficulty of alignments in phylogenetics
GNU General Public License v3.0
16 stars 0 forks source link

AttributeError on plot #15

Open cassiabitencourt opened 6 months ago

cassiabitencourt commented 6 months ago

Hi Julia:

I am running the latest version, and I found this error:

Traceback (most recent call last):
  File "/mnt/shared/scratch/cbitenco/apps/conda/bin/pythia", line 8, in <module>
    sys.exit(main())
  File "/mnt/shared/scratch/cbitenco/apps/conda/lib/python3.9/site-packages/pypythia/prediction.py", line 314, in main
    fig.tight_layout()
AttributeError: 'AxesSubplot' object has no attribute 'tight_layout'

Can you check or fix it, please? Or I am missing something.

Many thanks, Cassia.

tschuelia commented 6 months ago

Hi Cassia! I'm sorry that you are having trouble using Pythia. I suspect that this is an issue with software versions. Can you maybe send me a list of your package versions? It appears that you are using conda, so you can simply type conda env export > environment.yml and attach the generated environment.yml file 🙂

vtorda commented 1 month ago

Hi,

I have a similar error that refers to the same line if I turn on the Shapley value computation (--shap):

  File "/mnt/shared/scratch/tvarga/apps/conda/envs/phytia/bin/pythia", line 10, in <module>
    sys.exit(main())
  File "/mnt/shared/scratch/tvarga/apps/conda/envs/phytia/lib/python3.11/site-packages/pypythia/prediction.py", line 314, in main
    fig.tight_layout()
AttributeError: 'Axes' object has no attribute 'tight_layout'. Did you mean: '_in_layout'?

Please find the list of packages here: environment.txt

Thank you!