https://github.com/Nalin-x-Linux/lios-3
如果按照LIOS的创造者的源码链接中的如下方法安装LIOS:
git clone https://gitlab.com/Nalin-x-Linux/lios-3.git
cd lios-3
python3 setup.py install --install-data=/usr
则会出现下列错误:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/lios/main.py", line 1329, in make_preferences_effective
self.dict = dictionary.Dict(dictionary.dictionary_language_dict[languages[self.preferences.language]])
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/lios", line 8, in <module>
linux_intelligent_ocr_solution()
File "/usr/local/lib/python3.6/dist-packages/lios/main.py", line 342, in __init__
self.make_preferences_effective()
File "/usr/local/lib/python3.6/dist-packages/lios/main.py", line 1350, in make_preferences_effective
pacman -S aspell-fr""").format(languages[self.preferences.language]))
IndexError: list index out of range
即使将上面安装的LIOS卸载,然后使用 sudo apt install lios 的命令安装并运行LIOS后,也还会继续得到相同的错误,此时的处理办法就是卸载错误提示里面的相关文件夹和文件,然后重新使用 sudo apt install lios 的方法安装即可正常运行:
sudo rm -rf /usr/local/lib/python3.6/dist-packages/lios
sudo rm /usr/local/lib/python3.6/dist-packages/lios-2.5.egg-info