katana icon indicating copy to clipboard operation
katana copied to clipboard

enchant.errors.DictNotFoundError: Dictionary for language 'zh_CN' could not be found

Open felixzwl opened this issue 3 years ago • 0 comments

root@katana:/opt/katana/docker# pip install pyenchant /usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead from cryptography.utils import int_from_bytes /usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead from cryptography.utils import int_from_bytes Requirement already satisfied: pyenchant in /usr/local/lib/python3.8/dist-packages/pyenchant-3.2.1-py3.8.egg (3.2.1) root@katana:/opt/katana/docker# python3 -m katana -c /data/katana.ini -m monitor=/data/targets,outdir=/data/results Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details import(pkg_name) File "/usr/local/lib/python3.8/dist-packages/katana-2.0-py3.8.egg/katana/init.py", line 7, in import katana.manager File "/usr/local/lib/python3.8/dist-packages/katana-2.0-py3.8.egg/katana/manager.py", line 18, in from katana.target import Target, BadTarget File "/usr/local/lib/python3.8/dist-packages/katana-2.0-py3.8.egg/katana/target.py", line 41, in DICTIONARY = enchant.Dict() File "/usr/local/lib/python3.8/dist-packages/pyenchant-3.2.1-py3.8.egg/enchant/init.py", line 542, in init super().init() File "/usr/local/lib/python3.8/dist-packages/pyenchant-3.2.1-py3.8.egg/enchant/init.py", line 144, in init self._init_this() File "/usr/local/lib/python3.8/dist-packages/pyenchant-3.2.1-py3.8.egg/enchant/init.py", line 549, in _init_this this = self._broker._request_dict_data(self.tag) File "/usr/local/lib/python3.8/dist-packages/pyenchant-3.2.1-py3.8.egg/enchant/init.py", line 287, in _request_dict_data self._raise_error(e_str % (tag,), DictNotFoundError) File "/usr/local/lib/python3.8/dist-packages/pyenchant-3.2.1-py3.8.egg/enchant/init.py", line 233, in _raise_error raise eclass(default) enchant.errors.DictNotFoundError: Dictionary for language 'zh_CN' could not be found Please check https://pyenchant.github.io/pyenchant/ for details root@katana:/opt/katana/docker#

felixzwl avatar Jul 11 '21 15:07 felixzwl