Not able to download database for MetaPhlAn

MetaPhlAn version 3.0


metaphlan --install



Warning: Unable to download
Traceback (most recent call last):
File “/home/gmpl/miniconda3/envs/bsc_metagenome/bin/metaphlan”, line 10, in
File “/home/gmpl/miniconda3/envs/bsc_metagenome/lib/python3.6/site-packages/metaphlan/”, line 1187, in main
pars[‘index’] = check_and_install_database(pars[‘index’], pars[‘bowtie2db’], pars[‘bowtie2_build’], pars[‘nproc’], pars[‘force_download’])
File “/home/gmpl/miniconda3/envs/bsc_metagenome/lib/python3.6/site-packages/metaphlan/”, line 589, in check_and_install_database
index = resolve_latest_database(bowtie2_db, ls_f[‘mpa_latest’], force_redownload_latest)
UnboundLocalError: local variable ‘ls_f’ referenced before assignment

Hi @self_shubham
The dropbox download has been deprecated around one year ago, I suggest you to upgrade the metaphlan 3 version to the latest available to fix the problem