Unexpected error when importing data

qiime2 % qiime tools import \

--type 'SampleData[PairedEndSequencesWithQuality]'
--input-path /Users/dr.katlabadmin/qiime2
--input-format CasavaOneEightSingleLanePerSampleDirFmt
--output-path demux-paired-end.qza
Traceback (most recent call last):
File "/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/q2cli/builtin/tools.py", line 157, in import_data
artifact = qiime2.sdk.Artifact.import_data(type, input_path,
File "/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/sdk/result.py", line 299, in import_data
return cls.from_view(type, view, view_type, provenance_capture,
File "/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/sdk/result.py", line 334, in _from_view
artifact._archiver = archive.Archiver.from_data(
File "/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/core/archive/archiver.py", line 379, in from_data
path, process_alias, cache = cls._make_temp_path(uuid)
File "/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/core/archive/archiver.py", line 274, in _make_temp_path
cache = get_cache()
File "/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/core/cache.py", line 67, in get_cache
_CACHE.temp_cache = Cache()
File "/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/core/cache.py", line 176, in init
raise ValueError(f"Path: '{path}' already exists and is not a"
ValueError: Path: 'None' already exists and is not a cache

An unexpected error has occurred:

Path: 'None' already exists and is not a cache

See above for debug info.


Does anyone know how I can fix this? I was able to import data before with no problem and now I keep getting this error.

@SNOSO,
We have a patch coming out for this today hopefully. I am assuming you are on a Mac, which clean up temp files that have not been changed or opened every 3 days, so part of the new caching system we just released was getting removed by the OS automatically and causing this problem. The short term fix is just restart your computer and it should completely clear the temp directory out and start a fresh cache!

1 Like

Patch is out! Please reinstall your environment using the usual instructions:

2 Likes