EOFError:Compressed file ended before the end-of-stream marker was reached

Thanks,I'm analyzing the fungus,when imported remaining FASTQ-files into QIIME 2 using Casava.
With the following syntax:
qiime tools import
--type 'SampleData[PairedEndSequencesWithQuality]'
--input-path FASTQ_files_untrimmed/Sequencing_run_1_FASTQ
--input-format CasavaOneEightSingleLanePerSampleDirFmt
--output-path Import/Untrimmed_files/import_descriptive_mycobiome_article_sequencing_run_1.qza

I have the following error:
Traceback (most recent call last):
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/q2cli/builtin/tools.py", line 266, in import_data
artifact = qiime2.sdk.Artifact.import_data(type, input_path,
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/sdk/result.py", line 327, in import_data
return cls.from_view(type, view, view_type, provenance_capture,
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/sdk/result.py", line 355, in _from_view
result = transformation(view, validate_level)
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/core/transform.py", line 68, in transformation
self.validate(view, level=validate_level)
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/core/transform.py", line 143, in validate
view.validate(level)
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/plugin/model/directory_format.py", line 177, in validate
getattr(self, field)._validate_members(collected_paths, level)
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/plugin/model/directory_format.py", line 107, in _validate_members
self.format(path, mode='r').validate(level)
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/plugin/model/file_format.py", line 26, in validate
self.validate(level)
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/q2_types/per_sample_sequences/_format.py", line 284, in validate
self._check_n_records(record_count_map[level])
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/q2_types/per_sample_sequences/_format.py", line 244, in check_n_records
for i, record in file
:
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/gzip.py", line 305, in read1
return self._buffer.read1(size)
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/_compression.py", line 68, in readinto
data = self.read(len(byte_view))
File "/home/data/t160346/miniconda3/envs/qiime2-2023.5/lib/python3.8/gzip.py", line 498, in read
raise EOFError("Compressed file ended before the "
EOFError: Compressed file ended before the end-of-stream marker was reached

An unexpected error has occurred:

Compressed file ended before the end-of-stream marker was reached

See above for debug info.

Welcome to the forums! :qiime2:

Thank you for your patiance, and for posting the full error. Here's the important part:

This happens when the file was corrupted, maybe when downloading it from another server. Can you try downloading those fastq files again and see if this fixes the error?

1 Like

An off-topic reply has been split into a new topic: qiime tools import error: forward and reverse reads do not match

Please keep replies on-topic in the future.

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