Hi all,
I searched for the topic and it seems it hasn’t been addressed yet (if yes, sorry).
I am using QIIME2-2021.2 in conda on my terminal of Mac OS Big Sur 11.2.3 (8Gb of RAM and i5) and downloaded Silva 138 99% OTUs from 515F/806R region of sequences as a classifier.
When I run in my terminal:
qiime feature-classifier classify-sklearn --i-reads feature-data-sequence.qza --i-classifier silva-138-99-seqs-515-806.qza --o-classification taxonomy.qza , I obtain this error:
There was a problem loading silva-138-99-515-806-nb-classifier.qza as a QIIME 2 Result:
module ‘natsort’ has no attribute 'compat’
See above for debug info.
I already verified the version of scikit-learn, it is updated to 0.23.1. The working directory is also well set.
Could you please help me understand the error?
Many thanks!
The debug info are:
Traceback (most recent call last):
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/q2cli/click/type.py”, line 112, in _convert_input
result = qiime2.sdk.Result.load(value)
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/qiime2/sdk/result.py”, line 66, in load
archiver = archive.Archiver.load(filepath)
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/qiime2/core/archive/archiver.py”, line 307, in load
return cls(path, Format(rec))
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/qiime2/core/archive/format/v1.py”, line 29, in init
super().init(archive_record)
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/qiime2/core/archive/format/v0.py”, line 73, in init
self.format = sdk.parse_format(format)
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/qiime2/sdk/util.py”, line 88, in parse_format
pm = qiime2.sdk.PluginManager()
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/qiime2/sdk/plugin_manager.py”, line 54, in new
self._init(add_plugins=add_plugins)
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/qiime2/sdk/plugin_manager.py”, line 81, in _init
plugin = entry_point.load()
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/pkg_resources/init.py”, line 2472, in load
return self.resolve()
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/pkg_resources/init.py”, line 2478, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/q2_diversity/init.py”, line 11, in
from ._beta import (beta, beta_phylogenetic, bioenv,
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/q2_diversity/_beta/init.py”, line 12, in
from ._visualizer import bioenv, beta_group_significance, mantel, adonis
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/q2_diversity/_beta/_visualizer.py”, line 25, in
from natsort import natsorted
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/natsort/init.py”, line 3, in
from natsort.natsort import (
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/natsort/natsort.py”, line 201, in
natsort_key = natsort_keygen()
File “/Users/elifka/opt/miniconda3/envs/qiime2-2021.2/lib/python3.6/site-packages/natsort/natsort.py”, line 172, in natsort_keygen
sep = natsort.compat.locale.null_string
AttributeError: module ‘natsort’ has no attribute ‘compat’