qiime diversity alpha-rarefaction plugin error

Hi there-

I am running qiime2-2020.8 on a conda environment and am having trouble running the diversity alpha rarefaction step. I have used this for other datasets and am at a loss as to why I am getting this error.

I typed the following command:
qiime diversity alpha-rarefaction --i-table 2020-10_USDA-UNL_table.qza --i-phylogeny 2020-10_USDA-UNL_rooted-tree.qza --p-max-depth 34900 --m-metadata-file 2020-10_USDA-UNL_Metadata3.txt --o-visualization 2020-10_USDA-UNL_alpha-rarefaction3.qzv

Traceback (most recent call last):
File “~/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/q2cli/commands.py”, line 329, in call
results = action(**arguments)
File “”, line 2, in alpha_rarefaction
File “~/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 245, in bound_callable
output_types, provenance)
File “~/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 452, in callable_executor
ret_val = self._callable(output_dir=temp_dir, **view_args)
File “~/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/q2_diversity/_alpha/_visualizer.py”, line 399, in alpha_rarefaction
metric_name, c_df, column)
File “~/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/q2_diversity/_alpha/_visualizer.py”, line 272, in _alpha_rarefaction_jsonp
with open(os.path.join(output_dir, filename), ‘w’) as fh:
FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/qiime2-temp-tbfap_cz/shannon-Incubation/Inhibitor.jsonp’

Plugin error from diversity:

[Errno 2] No such file or directory: ‘/tmp/qiime2-temp-tbfap_cz/shannon-Incubation/Inhibitor.jsonp’

See above for debug info.

I appreciate any insight!

Hi @kjeanis,
Welcome to the forum!

Similar issues have been reported before; I suspect you have a forward slash character in your sample metadata file, perhaps named “incubation/inhibitor”? Remove the slash and you should be fine, see here for a similar issue:

Good luck!