# Importing files in Casava format - md5sum not found

**URL:** https://forum.qiime2.org/t/importing-files-in-casava-format-md5sum-not-found/30826
**Category:** User Support
**Tags:** paired-end, import
**Created:** [July 15, 2024, 4:47am UTC](https://forum.qiime2.org/t/importing-files-in-casava-format-md5sum-not-found/30826 "2024-07-15T04:47:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ashoi\_Dantra](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ashoi_dantra/32/18744_2.png) [@Ashoi\_Dantra](https://forum.qiime2.org/u/Ashoi_Dantra)
#### Post date: [July 15, 2024, 4:47am UTC](https://forum.qiime2.org/t/importing-files-in-casava-format-md5sum-not-found/30826/1 "2024-07-15T04:47:38Z")

</div>

Hi, student here.  
I have used CASAVA format before and have never faced this issue. I just used the code  
qiime tools import   
--type 'SampleData[PairedEndSequencesWithQuality]'   
--input-path /export/home/a-e/adantra/iydata   
--input-format CasavaOneEightSingleLanePerSampleDirFmt   
--output-path /export/home/a-e/adantra/outputiy/demux-paired-end.qza

and i get an error:  
Traceback (most recent call last):  
File "/cm/shared/apps/conda/anaconda3/envs/qiime2-amplicon-2024.2/lib/python3.8/site-packages/q2cli/builtin/tools.py", line 852, in \_import  
artifact = qiime2.sdk.Artifact.import\_data(  
File "/cm/shared/apps/conda/anaconda3/envs/qiime2-amplicon-2024.2/lib/python3.8/site-packages/qiime2/sdk/result.py", line 325, in import\_data  
md5sums = util.md5sum\_directory(path)  
File "/cm/shared/apps/conda/anaconda3/envs/qiime2-amplicon-2024.2/lib/python3.8/site-packages/qiime2/core/util.py", line 174, in md5sum\_directory  
sums[os.path.relpath(path, start=directory)] = md5sum(path)  
File "/cm/shared/apps/conda/anaconda3/envs/qiime2-amplicon-2024.2/lib/python3.8/site-packages/qiime2/core/util.py", line 141, in md5sum\_native  
result = subprocess.run(['md5sum', str(filepath)],  
File "/cm/shared/apps/conda/anaconda3/envs/qiime2-amplicon-2024.2/lib/python3.8/subprocess.py", line 516, in run  
raise CalledProcessError(retcode, process.args,  
subprocess.CalledProcessError: Command '['md5sum', '/export/home/a-e/adantra/iydata/138821\_01\_L001\_R1\_001.fastq.gz']' returned non-zero exit status 1.

An unexpected error has occurred:

**Command '['md5sum', '/export/home/a-e/adantra/iydata/138821\_01\_L001\_R1\_001.fastq.gz']' returned non-zero exit status 1.**

I am not sure what this means. I have validated that my files are all correct and have the necessary data. I also checked the permissions I have for this file which is all good. I do not know what md5sum is and when i used the code: which md5sum, it printed usr/bin/md5sum. I have also moved this file into the current folder i am working in (outputiy).

Anyone have any reasoning as to why this is happening and what I can do? I have spent two week on renaming, merging data and am very frustrated.

---

<div class="post-metadata">

### Author: ![Mike\_Stevenson](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mike_stevenson/32/18913_2.png) [@Mike\_Stevenson](https://forum.qiime2.org/u/Mike_Stevenson)
#### Post date: [July 15, 2024, 6:12am UTC](https://forum.qiime2.org/t/importing-files-in-casava-format-md5sum-not-found/30826/2 "2024-07-15T06:12:19Z")

</div>

Hi Ashoi.

I think the Md5 command didn’t work correctly. I’ve had similar issues before and the problem for me was simply a corrupted download. I would try downloading again as one option. You could also try running the export command again but put ‘sudo’ before it if it’s perhaps related to permissions. Other than that, I’m not sure.

---

<div class="post-metadata">

### Author: ![Ashoi\_Dantra](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ashoi_dantra/32/18744_2.png) [@Ashoi\_Dantra](https://forum.qiime2.org/u/Ashoi_Dantra)
#### Post date: [August 7, 2024, 6:38am UTC](https://forum.qiime2.org/t/importing-files-in-casava-format-md5sum-not-found/30826/3 "2024-08-07T06:38:11Z")

</div>

Hi Mike, Yes you are right! It was a few files that had not downloaded in the correct format. Thankyou!!

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [September 7, 2024, 12:38pm UTC](https://forum.qiime2.org/t/importing-files-in-casava-format-md5sum-not-found/30826/4 "2024-09-07T12:38:18Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
