# Plugin error from feature-classifier: not enough values to unpack (expected 2, got 0)

**URL:** <https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906>\
**Category:** User Support\
**Created:** [April 24, 2018, 6:01pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906 "2018-04-24T18:01:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![atrout](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@atrout](https://forum.qiime2.org/u/atrout)\
**Post date:** [April 24, 2018, 6:01pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/1 "2018-04-24T18:01:53Z")

</div>

Ok, so I've checked the forum and the closest thing I found to my issue was a conversation that was closed by the user before an answer was found. My error message is in the subject above.

--verbose reading is as follows:

(qiime2-2017.12) CNS-969348:ITSV1Manifest stinsonlab$ qiime feature-classifier fit-classifier-naive-bayes --i-reference-reads ref-seqs.qza --i-reference-taxonomy ref-taxonomy.qza --o-classifier classifier.qza --verbose  
/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_feature\_classifier/classifier.py:101: UserWarning: The TaxonomicClassifier artifact that results from this method was trained using scikit-learn version 0.19.1. It cannot be used with other versions of scikit-learn. (While the classifier may complete successfully, the results will be unreliable.)  
warnings.warn(warning, UserWarning)  
Traceback (most recent call last):  
File "/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2cli/commands.py", line 224, in **call**  
results = action(\*\*arguments)  
File "", line 2, in fit\_classifier\_naive\_bayes  
File "/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py", line 228, in bound\_callable  
output\_types, provenance)  
File "/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py", line 363, in _callable\_executor_  
output\_views = self.\_callable(\*\*view\_args)  
File "/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_feature\_classifier/classifier.py", line 310, in generic\_fitter  
pipeline)  
File "/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_feature\_classifier/\_skl.py", line 31, in fit\_pipeline  
y, X = list(zip(\*data))  
ValueError: not enough values to unpack (expected 2, got 0)

Plugin error from feature-classifier:

not enough values to unpack (expected 2, got 0)

See above for debug info.

I have been on this issue for multiple days now and I figured I'd reach out into the ether.

I suspect that the problem is with my tsv. I also tried running the file as txt but this didn't seem to help.

[ref-seqs.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/6/6340bdf8e1ee2e601826f863a258cc0643859bab.qza) (8.9 KB)  
[ref-taxonomy.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/e/ef89aeeb233efa40f56550af6b02b327568d5041.qza) (2.2 MB)

You are my only hope,

Adam

---

<div class="post-metadata">

**Author:** ![antgonza](https://forum.qiime2.org/user_avatar/forum.qiime2.org/antgonza/32/1236_2.png) [@antgonza](https://forum.qiime2.org/u/antgonza)\
**Post date:** [April 24, 2018, 7:30pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/4 "2018-04-24T19:30:37Z")

</div>

Hello,

Looking at your files, it seems like the headers in the sequence file do _not_ match the names in the taxonomy, see:

```auto
(qiime2-2018.2) 12:05:31 Downloads$ head 90d0ab54-4c21-408c-979e-e3f7639f82e7/data/taxonomy.tsv 
Feature ID	Taxon
DQ068970	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Thelephora;s__Thelephora_terrestris
AY750163	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Thelephora;s__Thelephora_terrestris
AY456369	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Thelephora;s__Thelephora_terrestris
AY880934	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Thelephora;s__Thelephora_terrestris
AY880929	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Tomentella;s__Tomentella_sublilacina
AF104990	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Tomentella;s__Tomentella_testaceogilva
AF104989	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Thelephora;s__Thelephora_alnii
AF104988	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Tomentella;s__Tomentella_testaceogilva
AF104987	k __Fungi;p__ Basidiomycota;c __Agaricomycetes;o__ Thelephorales;f __Thelephoraceae;g__ Thelephora;s__Thelephora_alnii
(qiime2-2018.2) 12:05:42 Downloads$ head 62ab68ae-be2f-4e23-a4ee-b1f9e4500124/data/dna-sequences.fasta 
>8283bc2ce35098bc3065e103dcc1aa9b
ACTATAACACACTTTATATTCTGACCTCAAATCAGGTAGGACTACCCGCTGAACTTAA
>3e7d4d1bcbef3f925aea91eb8aa4fc9d
TTCGTTACACGCGTTTAACAGAATGTGTCTGGCCTCATATATGGAAGGTTACCCGCTGGATTTAA
>9ead059f61c895d1c30dc03bf0d82267
ATCCAACAGCTAGTTGGGACGTGACCTGACTACCCGTAGTAGGTCTAAATGGATTGCAATCAAAATGTGGTAAAAGACGGATGTTCTTTCCCATTGACGATTTAAACTCTGAATTATGATCTCAAATTATATAAGAATACCCGCTGAACTTAA
>c1089ff5e0958c3c127ef1c8e61feaf6
TTATGATGAATATGTTCAAACATATTTTTTGCAATATGTCTGGCCTCATATGTGGAAGGTTACCCGCTGGATTTAA
>7e31a264c73578223a66fb862337e946
GTTCAAAATATATAAAACAAAACTGTGTGGTAATTATTACACAATTGTTCTATCTAACTTTGATCTCAAATCAGATAAGAATACCCGCTGAACTTAA

```

BTW there is another thread with a similar issue:

> [@Feature Classifier - Not enough values to unpack](https://forum.qiime2.org/t/feature-classifier-not-enough-values-to-unpack/3551):
>
> Hi Everyone, I am having a problem with training the feature-classifier for a specific database (phytoref). My issue is very similar to the one posted by another user [[https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack/1838](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack/1838)] but unfortunately that issue never got resolved. Here is my command: qiime feature-classifier fit-classifier-naive-bayes --i-reference-reads phytoref\_16S\_ref-seqs.qza --i-reference-taxonomy phytoref\_taxonomy.qza --o-classifier phyt…

Hope this helps.

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [May 26, 2018, 1:30am UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/5 "2018-05-26T01:30:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![atrout](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@atrout](https://forum.qiime2.org/u/atrout)\
**Post date:** [June 11, 2018, 4:36pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/6 "2018-06-11T16:36:26Z")

</div>

Unfortunately, I wasn't able to find an answer to my question before the topic expired.

Original post follows ([Plugin error from feature-classifier: not enough values to unpack (expected 2, got 0)](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906))

> Blockquote

Ok, so I’ve checked the forum and the closest thing I found to my issue was a conversation that was closed by the user before an answer was found. My error message is in the subject above.

–verbose reading is as follows:

(qiime2-2017.12) CNS-969348:ITSV1Manifest stinsonlab$ qiime feature-classifier fit-classifier-naive-bayes --i-reference-reads ref-seqs.qza --i-reference-taxonomy ref-taxonomy.qza --o-classifier classifier.qza --verbose  
/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_feature\_classifier/classifier.py:101: UserWarning: The TaxonomicClassifier artifact that results from this method was trained using scikit-learn version 0.19.1. It cannot be used with other versions of scikit-learn. (While the classifier may complete successfully, the results will be unreliable.)  
warnings.warn(warning, UserWarning)  
Traceback (most recent call last):  
File “/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2cli/commands.py”, line 224, in call  
results = action(\*\*arguments)  
File “”, line 2, in fit\_classifier\_naive\_bayes  
File “/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py”, line 228, in bound\_callable  
output\_types, provenance)  
File “/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py”, line 363, in callable\_executor  
output\_views = self.\_callable(\*\*view\_args)  
File “/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_feature\_classifier/classifier.py”, line 310, in generic\_fitter  
pipeline)  
File “/Users/stinsonlab/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2\_feature\_classifier/\_skl.py”, line 31, in fit\_pipeline  
y, X = list(zip(\*data))  
ValueError: not enough values to unpack (expected 2, got 0)

Plugin error from feature-classifier:

not enough values to unpack (expected 2, got 0)

See above for debug info.

I have been on this issue for multiple days now and I figured I’d reach out into the ether.

I suspect that the problem is with my tsv. I also tried running the file as txt but this didn’t seem to help.

> Blockquote

I got a solution to the above post that the headers of the attached files didn't match. It's my understanding however that this step is to create a classifier so while the taxonomy file was downloaded from the ITS repository from the Unite site ([UNITE - Resources](https://unite.ut.ee/repository.php)) the sequences file are my data, so they wouldn't match.

Any help is appreciated[ref-seqs.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/6/6340bdf8e1ee2e601826f863a258cc0643859bab.qza) (8.9 KB)  
[ref-taxonomy.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/e/ef89aeeb233efa40f56550af6b02b327568d5041.qza) (2.2 MB)

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 11, 2018, 4:38pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/7 "2018-06-11T16:38:39Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 11, 2018, 4:52pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/8 "2018-06-11T16:52:08Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 12, 2018, 8:03pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/9 "2018-06-12T20:03:09Z")

</div>

Hey there @atrout!

> [@atrout](#):
>
> Unfortunately, I wasn’t able to find an answer to my question before the topic expired.

I think @antgonza provided a [pretty solid explanation](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/4) for _why_ you are experiencing this issue, but I will restate it here.

The feature IDs in your reference taxonomy artifact don't match the feature IDs in your reference sequences artifact. If I had to guess, your reference sequences here are actually not from the UNITE database, but are instead your representative sequence (the features have hashed sequences as the IDs, which is a default parameter for dada2 and deblur based denoising in QIIME 2). The reference sequences need to come from the same source as the reference taxonomy (those two parts add up to make the entire database, effectively). After importing, trimming, and then training, you can then introduce your representative sequences (the features identified in your study). Make sense?

Let us know, thanks! 🦖 :qiime2:

Have you had a chance to review the [Training Feature Classifiers Tutorial](https://docs.qiime2.org/2018.4/tutorials/feature-classifier/)?

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 12, 2018, 8:03pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/10 "2018-06-12T20:03:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![atrout](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@atrout](https://forum.qiime2.org/u/atrout)\
**Post date:** [June 12, 2018, 10:57pm UTC](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906/11 "2018-06-12T22:57:30Z")

</div>

Yeah, that makes more sense. I was confused by the reference to using your own data to train the classifier.
