gpt4 book ai didi

python - py2app 和 pyEnchant 发生了什么?

转载 作者:行者123 更新时间:2023-12-01 06:02:37 26 4
gpt4 key购买 nike

PyEnchant 包含在 bundle 中的 site-packages.zip 中,但它无法加载任何字典!为什么不?我总是收到“未找到字典”错误。但字典位于 site-packages.zip/enchant/share/enchant/myspell/..这是怎么回事?

    2012-03-01 14:24:42,469     EXCEPTION:
2012-03-01 14:24:42,469 EXCEPTION TYPE: <class 'enchant.errors.DictNotFoundError'> EXCEPTION VALUE: Dictionary for language 'ru_RU' could not be found
2012-03-01 14:24:42,469 TRACEBACK: ('/Users/dima/dev/up/up/consultant/client/dist/main.app/Contents/Resources/__boot__.py', 39, '<module>', None)
2012-03-01 14:24:42,469 TRACEBACK: ('/Users/dima/dev/up/up/consultant/client/dist/main.app/Contents/Resources/__boot__.py', 36, '_run', None)
2012-03-01 14:24:42,469 TRACEBACK: ('/Users/dima/dev/up/up/consultant/client/dist/main.app/Contents/Resources/main.py', 26, '<module>', None)
2012-03-01 14:24:42,469 TRACEBACK: ('spell_check_text_edit.pyc', 21, '__init__', None)
2012-03-01 14:24:42,470 TRACEBACK: ('enchant/__init__.pyc', 502, '__init__', None)
2012-03-01 14:24:42,470 TRACEBACK: ('enchant/__init__.pyc', 264, '_request_dict_data', None)
2012-03-01 14:24:42,470 TRACEBACK: ('enchant/__init__.pyc', 218, '_raise_error', None)

最佳答案

您是否尝试从 ftp://ftp.gnu.org/gnu/aspell/dict/0index.html 安装 Aspell 和字典? ?
要安装 dict 只需下载 ftp://ftp.gnu.org/gnu/aspell/dict/ru/aspell6-ru-0.99f7-1.tar.bz2 ,解压它并

./configure && make && make install

关于python - py2app 和 pyEnchant 发生了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9514148/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com