This is a strange error, I have not seen it before. Notably, it is not actually coming from QIIME 2 itself, it appears to be an error during unpickling the saved classifier.
I have an idea of what might be causing this, related to this line:
This seems to imply that you are using a very old classifier, trained in an earlier version of QIIME 2. It looks like now you are using QIIME 2 version 2020.11. While all other artifact types are meant to be compatible between versions, the trained feature classifiers are not guaranteed to be cross-compatible, because the version of scikit-learn used for training and classifying must be the same.
So my theory is that pickle has been updated in the past 2 years, and is no longer compatible with this ancient pickle object ( )
I would investigate further, but it is quite pointless. Because even if this command did not fail at unpickling, it would certainly fail one line later, at the validation stage (raising an error that you are using an incompatible classifier because it was trained using the wrong version of q2-feature-classifier).
So the fix in this case is to download or re-train a new classifier that is compatible with the version of QIIME 2 that you are running.
SOLLUTION FOUND! So I was using qiime2 2021.2 and the classifier was created with qiime2 2019.4, after installing the right qiime version it workes flawless.