# Metaphlan4 issue ErrNo2

**URL:** <https://forum.biobakery.org/t/metaphlan4-issue-errno2/4514>\
**Category:** MetaPhlAn\
**Created:** [December 12, 2022, 10:45pm UTC](https://forum.biobakery.org/t/metaphlan4-issue-errno2/4514 "2022-12-12T22:45:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khem](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@khem](https://forum.biobakery.org/u/khem)\
**Post date:** [December 12, 2022, 10:45pm UTC](https://forum.biobakery.org/t/metaphlan4-issue-errno2/4514/1 "2022-12-12T22:45:04Z")

</div>

Hello,  
I installed metaphlan4 using conda env in a workstation and ran this below command to test one of my samples,  
$ metaphlan MS117\_R1.unmapped.fastq.gz --bowtie2out metagenome.bowtie2.bz2 --bowtie2db /media/scebmeta/raw\_backup/databases/metaphlan4 --nproc 5 --input\_type fastq -o profiled\_test.txt

and got this below error,  
_ **Error** _  
Traceback (most recent call last):  
File “/home/scebmeta/bin/miniconda3/envs/metaphlan4/bin/read\_fastx.py”, line 10, in   
sys.exit(main())  
File “/home/scebmeta/bin/miniconda3/envs/metaphlan4/lib/python3.7/site-packages/metaphlan/utils/read\_fastx.py”, line 168, in main  
f\_nreads, f\_avg\_read\_length = read\_and\_write\_raw(f, opened=False, min\_len=min\_len, prefix\_id=prefix\_id)  
File “/home/scebmeta/bin/miniconda3/envs/metaphlan4/lib/python3.7/site-packages/metaphlan/utils/read\_fastx.py”, line 129, in read\_and\_write\_raw  
with fopen(fd) as inf:  
File “/home/scebmeta/bin/miniconda3/envs/metaphlan4/lib/python3.7/site-packages/metaphlan/utils/read\_fastx.py”, line 56, in fopen  
return open(fn)  
FileNotFoundError: [Errno 2] No such file or directory: ’

* * *

Please can you help me to solve this error?  
Thanks

---

<div class="post-metadata">

**Author:** ![aitor.blancomiguez](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aitor.blancomiguez/32/86_2.png) [@aitor.blancomiguez](https://forum.biobakery.org/u/aitor.blancomiguez)\
**Post date:** [December 19, 2022, 5:48pm UTC](https://forum.biobakery.org/t/metaphlan4-issue-errno2/4514/2 "2022-12-19T17:48:59Z")

</div>

It seems that Metaphlan is not able to read the file you are tying to profile, have you check whether you have read permissions on the file?
