[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
File "/home/liyinhan/桌面/evo-master/evo/entry_points.py", line 95, in launch
main_module.run(args)
File "/home/liyinhan/桌面/evo-master/evo/main_traj.py", line 275, in run
from evo.tools import plot
File "/home/liyinhan/桌面/evo-master/evo/tools/plot.py", line 76, in <module>
apply_settings(SETTINGS)
File "/home/liyinhan/桌面/evo-master/evo/tools/plot.py", line 60, in apply_settings
mpl.use(settings.plot_backend)
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/__init__.py", line 1237, in use
plt.switch_backend(name)
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 271, in switch_backend
backend_mod = importlib.import_module(
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in <module>
from . import _backend_tk
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/backends/_backend_tk.py", line 15, in <module>
from PIL import Image, ImageTk
ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
[ERROR] evo module evo.main_traj crashed - no logfile written (disabled)
evo虽然安装成功了,但是还是出现错误,不能使用
有博主说遇见
[ERROR] evo module evo.main_traj crashed - no logfile written (disabled)
时使用命令进行更新,
pip install numpy --upgrade --user
但是这些都没用
我的解决方法如下
python3 -m pip install -U pip -i https://pypi.tuna.tsinghua.edu.cn/simple/
python3 -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/ #使用清华源速度快
pip install --editable . --upgrade --no-binary evo
接着少了一个ERROR,此时错误如下:
[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
File "/home/liyinhan/桌面/evo-master/evo/entry_points.py", line 95, in launch
main_module.run(args)
File "/home/liyinhan/桌面/evo-master/evo/main_traj.py", line 275, in run
from evo.tools import plot
File "/home/liyinhan/桌面/evo-master/evo/tools/plot.py", line 76, in <module>
apply_settings(SETTINGS)
File "/home/liyinhan/桌面/evo-master/evo/tools/plot.py", line 60, in apply_settings
mpl.use(settings.plot_backend)
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/__init__.py", line 1237, in use
plt.switch_backend(name)
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 271, in switch_backend
backend_mod = importlib.import_module(
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in <module>
from . import _backend_tk
File "/home/liyinhan/.local/lib/python3.8/site-packages/matplotlib/backends/_backend_tk.py", line 15, in <module>
from PIL import Image, ImageTk
ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
现在解决ImportError问题
sudo apt-get install python3-pil python3-pil.imagetk
最终问题全部解决,evo可以正常使用了