Hello, I saw there was a similar topic created by somebody but wasn't resolved perhaps. (Manifest File: Invalid text encoding)
In my case, I am using a demultiplexed fastq file, which I zipped using gzip, and then tried to import using the following command, but couldn't succeed...
qiime tools import --type 'SampleData[SequencesWithQuality]' --input-path ATCC/PGM052_QIIME2.fastq.gz --output-path demux.qza --source-format SingleEndFastqManifestPhred33
Traceback (most recent call last):
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/site-packages/q2cli/tools.py", line 116, in import_data
view_type=source_format)
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/site-packages/qiime2/sdk/result.py", line 214, in import_data
return cls.from_view(type, view, view_type, provenance_capture)
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/site-packages/qiime2/sdk/result.py", line 239, in _from_view
result = transformation(view)
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/site-packages/qiime2/core/transform.py", line 57, in transformation
self.validate(view)
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/site-packages/qiime2/core/transform.py", line 131, in validate
view.validate('min')
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/site-packages/qiime2/plugin/model/file_format.py", line 32, in validate
if not self.sniff():
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/site-packages/q2_types/per_sample_sequences/_format.py", line 35, in sniff
line = fh.readline()
File "/Users/rohanpatil/miniconda2/envs/qiime2-2018.2/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
An unexpected error has occurred:
'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
See above for debug info.
Also since you have asked in the previous unresolved topic, I have ran the following commands too and got respective outputs (see below).
echo $LC_ALL
echo $LANG
en_US.UTF-8
Please help. Thanks in advance.