Plugin error from diversity: [Errno 2] no such file or directory

Dear Forum:

I have a plugin error that I can't solve. I am trying to run qiime diversity alpha-correlation with

System versions
Python version: 3.6.7
QIIME 2 release: 2019.10
QIIME 2 version: 2019.10.0
q2cli version: 2019.10.0

(I know these aren't the latest version but I have successfully run it on this version.)

This is installed via conda


#SBATCH --account=skimble5
#SBATCH -A tow107
#SBATCH --partition=compute
#SBATCH --time 00:30:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=24
#SBATCH --export=ALL
#SBATCH --no-requeue
#SBATCH --job-name="alpha-correlation"
#SBATCH --output="alpha-correlation.o%j.%N"
export TMPDIR=/scratch/$USER/$SLURM_JOBID
module load anaconda
source activate qiime2
qiime diversity alpha-correlation
--i-alpha-diversity ./diversity_metrics/core-metrics-results_ITS_wo_recaps/shannon_vector_ITS_wo_recaps.qza
--m-metadata-file ./denoised_without_recaps/TurtleMapITS_without_recapsTurtleMapITS_without_recaps_metadata.tsv (114.6 KB) _metadata.tsv
--p-method spearman
--o-visualization ITS_wo_recaps_shannon_alpha_correlation.qzv

which gives:

Traceback (most recent call last):
File "/share/apps/compute/anaconda/envs/qiime2/lib/python3.6/site-packages/q2cli/", line 328, in call
results = action(**arguments)
File "</share/apps/compute/anaconda/envs/qiime2/lib/python3.6/site-packages/>", line 2, in alpha_correlation
File "/share/apps/compute/anaconda/envs/qiime2/lib/python3.6/site-packages/qiime2/sdk/", line 240, in bound_callable
output_types, provenance)
File "/share/apps/compute/anaconda/envs/qiime2/lib/python3.6/site-packages/qiime2/sdk/", line 445, in callable_executor
ret_val = self._callable(output_dir=temp_dir, **view_args)
File "/share/apps/compute/anaconda/envs/qiime2/lib/python3.6/site-packages/q2_diversity/_alpha/", line 216, in alpha_correlation
with open(os.path.join(output_dir, filename), 'w') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/qiime2-temp-08dq9w4

Plugin error from diversity:
[Errno 2] No such file or directory: '/tmp/qiime2-temp-08dq9w4_/column-H/L.jsonp'
See above for debug info.

But I don't know how to interpret this. Based on other plugin errors I see on the forum, it may be some error in my metadata file (attached) but I can't find it.


  1. Missing data in the metadata file should be left empty, not filled with NA or somesuch, correct?
  2. Is there some error in the metadata file? Is there some column that I think is numeric that isn't?
  3. Is this a cluster or qiime error?


Hi @skimble!

Yep, its the column labeled H/L - there was an old bug that I think was fixed a while ago that caused that / in the label to be interpreted as a directory. Two suggestions: 1) upgrade to a newer version of QIIME 2 (2019.10 is pretty old), 2) change the name of the MD column to something without a / character.

Hope that helps!


1 Like

Thanks, thermokarst, that fixed it!


1 Like

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