sun@sun-Legion-Y9000P-IAH7H:~/slam/FUZZY33$ evo_traj tum groundtruth.txt --plot
--------------------------------------------------------------------------------
name: groundtruth
infos: 2335 poses, 10.599m path length, 23.400s duration
[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
File "/home/sun/slam/evo-master/evo/entry_points.py", line 95, in launch
main_module.run(args)
File "/home/sun/slam/evo-master/evo/main_traj.py", line 304, in run
from evo.tools import plot
File "/home/sun/slam/evo-master/evo/tools/plot.py", line 88, in <module>
apply_settings(SETTINGS)
File "/home/sun/slam/evo-master/evo/tools/plot.py", line 63, in apply_settings
mpl.use(settings.plot_backend)
File "/home/sun/.local/lib/python3.8/site-packages/matplotlib/__init__.py", line 1237, in use
plt.switch_backend(name)
File "/home/sun/.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/sun/.local/lib/python3.8/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in <module>
from . import _backend_tk
File "/home/sun/.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)
解决
sudo apt-get install python3-pil python3-pil.imagetk