Error in MetaPhlAn installation

Hi all
I am trying to install MetaPhlAn and I am getting this error
conda create --name mpa -c bioconda python=3.7 metaphlan
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package → Available versions

Package python conflicts for:
python=3.7
metaphlan → python[version=‘2.7.|>=3|>=3.7’]
metaphlan → biom-format → python[version='3.4.
|3.5.|3.6.|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.11,<3.12.0a0|>=3.10,<3.11.0a0|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=2.7,<3|>=3.7.1,<3.8.0a0|<3.0.0|>=3.6’]The following specifications were found to be incompatible with your system:

  • feature:/linux-64::__glibc==2.27=0
  • feature:|@/linux-64::__glibc==2.27=0

Your installed version is: 2.27
However, when I checked the Python --version it shows python 3.8.13
Kindly suggest

I’m having a similar issue about glibc (pythong version was fine).
$ conda create --name biobakery3 python=3.7
$ conda activate biobakery3
(biobakery3)$ conda install -c bioconda metaphlan=4.0.6
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package → Available versionsThe following specifications were found to be incompatible with your system:

  • feature:/linux-64::__glibc==2.31=0
  • feature:|@/linux-64::__glibc==2.31=0

Your installed version is: 2.31

Hi @fanhuan
Dud you got the error fixed.
I am trying an alternative way by installing biobakery_workflows
But that again gives me error.
Meanwhile I am waiting for the reply from the group members and experts in the groups.

How about trying to use -c conda-forge flag as suggested?

$ conda create --name mpa -c conda-forge -c bioconda python=3.7 metaphlan

Hi @Makio
Thank you for your reply.
No I didn’t,
I was trying other way by installing biobakery_workflows. But got error
metaphlan --install --index mpa_vJan21_CHOCOPhlAnSGB_202103 --bowtie2db bowtie2

Downloading MetaPhlAn database
Please note due to the size this might take a few minutes

\Downloading and uncompressing indexes

Downloading http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.tar
Downloading file of size: 19909.64 MB
14714.07 MB 73.90 % 1.81 MB/sec 47 min 45 sec
Warning: Unable to download http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.tar

Downloading http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.md5

Warning: Unable to download http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.md5
File “bowtie2/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.md5” not found!
MD5 checksums not found, something went wrong!
Please help out

Hi @Makio
Again, then I tried to download the database manually,
but now want to know how to proceed further
thanks

@mallamuneer you might follow the tutorial to test the environment. I think it is good for you to download the vJan21 instead of vOct22 as I see another problem with vOct22 - Cannot reproduce results of MetaPhlAn 4.0 tutorial - #4 by Makio

Hi@ Makio
thank you so much for your prompt response
First : Do you mean after manual installation, I should run the example dataset to test the environment
Second: please share the link for vOct22
Regards

Hi @mallamuneer

Yes, I would recommend running the example and ensuring you can reproduce the same results.

vOct22 is at the official FTP site Index of /biobakery4/metaphlan_databases.

Makio