Unhandled error in evo.main_traj和evo module evo.main_traj crashed - no logfile written (disabled)

[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可以正常使用了

  • 9
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值