What | Removed | Added |
---|---|---|
Status | NEW | CONFIRMED |
I just installed a new vm with Tumbleweed 20190716, installed python3-pyenchant and some myspell dictionaries on it and did a test: antonio@linux-sywh:~> rpm -qa | grep enchant enchant-data-2.2.3-4.4.x86_64 enchant-2-backend-hunspell-2.2.3-4.4.x86_64 libenchant-2-2-2.2.3-4.4.x86_64 python3-pyenchant-2.0.0-2.4.noarch antonio@linux-sywh:~> rpm -qa |grep myspell myspell-dictionaries-20190423-1.3.x86_64 myspell-es-20190423-1.3.noarch myspell-en_US-20190423-1.3.noarch myspell-es_ES-20190423-1.3.noarch myspell-lightproof-en-20190423-1.3.x86_64 myspell-cs_CZ-20190423-1.3.noarch myspell-en-20190423-1.3.noarch antonio@linux-sywh:~> python3 Python 3.7.3 (default, Apr 09 2019, 05:18:21) [GCC] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import enchant >>> enchant.Dict('es_ES') <enchant.Dict object at 0x7f7b7bea8240> >>> enchant.Dict('cs_CZ') <enchant.Dict object at 0x7f7b7bea8940> >>> enchant.Dict('en_US') <enchant.Dict object at 0x7f7b7bea8240> So it works fine here without enchant-1-backends. I then installed enchant-1-backend-voikko and ... >>> enchant.Dict('es_ES') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.7/site-packages/enchant/__init__.py", line 562, in __init__ _EnchantObject.__init__(self) File "/usr/lib/python3.7/site-packages/enchant/__init__.py", line 168, in __init__ self._init_this() File "/usr/lib/python3.7/site-packages/enchant/__init__.py", line 569, in _init_this this = self._broker._request_dict_data(self.tag) File "/usr/lib/python3.7/site-packages/enchant/__init__.py", line 310, in _request_dict_data self._raise_error(eStr % (tag,),DictNotFoundError) File "/usr/lib/python3.7/site-packages/enchant/__init__.py", line 258, in _raise_error raise eclass(default) enchant.errors.DictNotFoundError: Dictionary for language 'es_ES' could not be found So it seems that for some reason, enchant is preferring to use enchant-1-backend-voikko (which seems to need enchant-1-backends) instead of enchant-2-backend-hunspell (which works fine).