merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
413 stars 142 forks source link

anvio thinks the python version is different than the one installed #2214

Closed Naturalist1986 closed 5 months ago

Naturalist1986 commented 5 months ago

Short description of the problem

anvio thinks the python version is different than the one installed

anvi'o version

(anvio-8) moshea@shannon:~$ anvi-self-test --version

======================================================== 🦄 SOMETHING BAD HAPPENED AND IT NEEDS YOUR ATTENTION 🦄

The environment in which you're running anvi'o has a Python version that is not compatible with the Python version requirement of anvi'o you are running. Here is a summary:

Anvi'o version you have ..............: 8 (marie)
Python version you have ..............: 3.8.10
Python version anvi'o wants ..........: 3.10.*

This should never have happened with a stable anvi'o release :/ Please follow the most up-to-date installation instructions at https://anvio.org/install/ to re-install anvi'o and its environment.

System info

installed with pip according to the instruction on the site.

(anvio-8) moshea@shannon:~$ python Python 3.10.13 | packaged by conda-forge | (main, Dec 23 2023, 15:36:39) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

Detailed description of the issue

anvio detects a different python to what I have.

meren commented 5 months ago

Hi @Naturalist1986,

It is difficult for me to make sense of this issue and imagine what might have gone wrong with your setup. But if anvi'o detects a different Python version associated with the environment in which it operates, then there is a different version there.

My approach would be to clean up the conda environment and start from scratch. This can't be a bug related to anvi'o codebase because if that was the case none of the installations would've worked.

Sorry for not being more helpful at this time :/

Best wishes, Meren

Naturalist1986 commented 5 months ago

Hi, Meren

Thanks for the quick response! Turns out to system was using an old pip, I guess it used it in the package installation phase and I didn't notice. It works now! Your program is amazing by the way thanks for all your work!

Best wishes, Naturalist

meren commented 5 months ago

Thank you, @Naturalist1986. I will relay your compliment to the anvi'o developers :)