# \[Errno2\] | Run a single sample

**URL:** https://forum.biobakery.org/t/errno2-run-a-single-sample/2802
**Category:** MetaPhlAn
**Created:** [November 15, 2021, 9:05pm UTC](https://forum.biobakery.org/t/errno2-run-a-single-sample/2802 "2021-11-15T21:05:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![trouz](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/trouz/32/1118_2.png) [@trouz](https://forum.biobakery.org/u/trouz)
#### Post date: [November 15, 2021, 9:05pm UTC](https://forum.biobakery.org/t/errno2-run-a-single-sample/2802/1 "2021-11-15T21:05:01Z")

</div>

Hello!  
I’m trying to run this command to run a single sample for an eDNA sample, from whole genome shotgun sequencing, with MetaPhlAn3.0 based on the Biobakery Wiki page, but I get the following error. Would you please help me to troubleshoot it? Thanks!

metaphlan July142020-1996A1\_S35\_L001\_R1\_001.fastq.gz --input\_type fastq \> July142020-1996A1\_S35\_L001\_R1\_001\_profile.txt

Downloading [http://cmprod1.cibio.unitn.it/biobakery3/metaphlan\_databases/mpa\_latest](http://cmprod1.cibio.unitn.it/biobakery3/metaphlan_databases/mpa_latest)

Warning: Unable to download [http://cmprod1.cibio.unitn.it/biobakery3/metaphlan\_databases/mpa\_latest](http://cmprod1.cibio.unitn.it/biobakery3/metaphlan_databases/mpa_latest)  
Traceback (most recent call last):  
File “/usr/local/bin/metaphlan”, line 8, in   
sys.exit(main())  
File “/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py”, line 985, in main  
pars[‘index’] = check\_and\_install\_database(pars[‘index’], pars[‘bowtie2db’], pars[‘bowtie2\_build’], pars[‘nproc’], pars[‘force\_download’])  
File “/usr/local/lib/python3.6/dist-packages/metaphlan/ **init**.py”, line 283, in check\_and\_install\_database  
index = resolve\_latest\_database(bowtie2\_db, mpa\_latest, force\_redownload\_latest)  
File “/usr/local/lib/python3.6/dist-packages/metaphlan/ **init**.py”, line 244, in resolve\_latest\_database  
with open(os.path.join(bowtie2\_db,‘mpa\_latest’)) as mpa\_latest:  
FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan\_databases/mpa\_latest’

---

<div class="post-metadata">

### Author: ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)
#### Post date: [December 3, 2021, 1:25pm UTC](https://forum.biobakery.org/t/errno2-run-a-single-sample/2802/2 "2021-12-03T13:25:29Z")

</div>

It seems that you cannot download the database. Can you access through a web browser to the mentioned URL? Otherwise, you can download the database from Dropbox ([https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AADHWzATSQcI0CNFD0sk7MAga](https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AADHWzATSQcI0CNFD0sk7MAga))

---

<div class="post-metadata">

### Author: ![MalbertR](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/malbertr/32/1075_2.png) [@MalbertR](https://forum.biobakery.org/u/MalbertR)
#### Post date: [May 31, 2022, 9:55am UTC](https://forum.biobakery.org/t/errno2-run-a-single-sample/2802/3 "2022-05-31T09:55:20Z")

</div>

So, even though this is an old thread…I still thought I would post a possible fix for this, as I also struggled quite a bit with a similar error.  
Also the link @fbeghini posted seems to be broken(?).

The easiest way I found was to cp mpa\_previous as mpa\_latest:

```auto
cp /your/path/to/miniconda3/envs/humann/lib/python3.7/site-packages/metaphlan/metaphlan_databases/mpa_previous /your/path/to/miniconda3/envs/humann/lib/python3.7/site-packages/metaphlan/metaphlan_databases/mpa_latest

```

Obviously replace `/your/path/to/` with your own correct path. This should resolve the issue so that it won’t be trying to download (which in my case was not working).  
The “previous” database is from what I have found still the “latest” anyway (201901). Also I actually find this better, since I would not like it to be downloading newer databases every time I run Humman3 without notifying me, since it would interefere with the reproducibility imo.
