# Metaphlan2 is available, but humann2 has errors

**URL:** <https://forum.biobakery.org/t/metaphlan2-is-available-but-humann2-has-errors/1114>\
**Category:** HUMAnN\
**Created:** [October 5, 2020, 1:05am UTC](https://forum.biobakery.org/t/metaphlan2-is-available-but-humann2-has-errors/1114 "2020-10-05T01:05:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HNUmcc](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@HNUmcc](https://forum.biobakery.org/u/HNUmcc)\
**Post date:** [October 5, 2020, 1:05am UTC](https://forum.biobakery.org/t/metaphlan2-is-available-but-humann2-has-errors/1114/1 "2020-10-05T01:05:07Z")

</div>

1. My metaphlan2 2.8.1 is available.  
But，humann2 2.8.2 ask me to download metaphlan2 databases.

2. I’ve tried installing metaphlan 2 2.7.8 and changing python 3 to python 2.  
Conda has made mistakes.

Can you help me ?

1. 

Error message returned from metaphlan2.py :

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

Downloading [https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AAA4XDP85WHon\_eHvztxkamTa/file\_list.txt?dl=1](https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AAA4XDP85WHon_eHvztxkamTa/file_list.txt?dl=1)

Warning: Unable to download [https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AAA4XDP85WHon\_eHvztxkamTa/file\_list.txt?dl=1](https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AAA4XDP85WHon_eHvztxkamTa/file_list.txt?dl=1)  
Traceback (most recent call last):  
File “/root/miniconda3/bin/metaphlan2.py”, line 1580, in   
metaphlan2()  
File “/root/miniconda3/bin/metaphlan2.py”, line 1373, in metaphlan2  
check\_and\_install\_database(pars[‘index’], pars[‘bowtie2db’], pars[‘bowtie2\_build’], pars[‘nproc’], pars[‘offline’])  
File “/root/miniconda3/bin/metaphlan2.py”, line 842, in check\_and\_install\_database  
download\_unpack\_tar(FILE\_LIST, index, bowtie2\_db, bowtie2\_build, nproc)  
File “/root/miniconda3/bin/metaphlan2.py”, line 749, in download\_unpack\_tar  
url\_tar\_file = ls\_f[“mpa\_” + download\_file\_name + “.tar”]  
UnboundLocalError: local variable ‘ls\_f’ referenced before assignment

1. 

Traceback (most recent call last):  
File “/root/miniconda3/bin/conda”, line 12, in   
from conda.cli import main  
ImportError: No module named conda.cli

---

<div class="post-metadata">

**Author:** ![lauren.j.mciver](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lauren.j.mciver](https://forum.biobakery.org/u/lauren.j.mciver)\
**Post date:** [October 9, 2020, 7:25pm UTC](https://forum.biobakery.org/t/metaphlan2-is-available-but-humann2-has-errors/1114/2 "2020-10-09T19:25:48Z")

</div>

Hello - Thank you for the detailed post and sorry to hear about the errors with the install. The latest version of HUMAnN 2 (v2.8.2) should be compatible with MetaPhlAn v2.8 or v2.7.8 with either python 2 or 3. It is expected that you will need to download the databases but newer versions of MetaPhlAn should download them for you. From your errors it looks like you are installing with conda. If you have not already done so, you might double check the versions conda has installed because sometimes it does not always install the latest versions. You can use the command `$ conda list` to print out all packages and versions installed in the current environment.

From the MetaPhlAn error you posted it looks like you might have an older version of the tool installed. If you upgrade your version it should resolve the error you are seeing. You might need to specify the version you would like installed in conda to make sure it pulls the version you would like. From the second error posted I am not sure what command is generating the error. If you would post a bit more about it I can help debug.

Thank you,  
Lauren

---

<div class="post-metadata">

**Author:** ![Gao](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Gao](https://forum.biobakery.org/u/Gao)\
**Post date:** [January 23, 2021, 2:59am UTC](https://forum.biobakery.org/t/metaphlan2-is-available-but-humann2-has-errors/1114/3 "2021-01-23T02:59:55Z")

</div>

hello , I install metaphlan2 under python=3.6 , but I failed , I wander that python (3.6 ) can support metaphlan2 ?  
thank you
