MichaelGrupp / evo

Python package for the evaluation of odometry and SLAM
https://michaelgrupp.github.io/evo/
GNU General Public License v3.0
3.33k stars 745 forks source link

error when i plot traj."evo module evo.main_traj crashed - no logfile written (disabled)" #626

Closed Victoria-aaa closed 5 months ago

Victoria-aaa commented 5 months ago

Description: [ERROR] Unhandled error in evo.main_traj Traceback (most recent call last): File "/home/victoria/.local/lib/python3.6/site-packages/evo/entry_points.py", line 92, in launch main_module.run(args) File "/home/victoria/.local/lib/python3.6/site-packages/evo/main_traj.py", line 398, in run from evo.tools import plot File "/home/victoria/.local/lib/python3.6/site-packages/evo/tools/plot.py", line 34, in import matplotlib.pyplot as plt File "/home/victoria/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2336, in switch_backend(rcParams["backend"]) File "/home/victoria/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 276, in switch_backend class backend_mod(matplotlib.backend_bases._Backend): File "/home/victoria/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 277, in backend_mod locals().update(vars(importlib.import_module(backend_name))) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/victoria/.local/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in from . import _backend_tk File "/home/victoria/.local/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py", line 6, in import tkinter as tk ModuleNotFoundError: No module named 'tkinter'

[ERROR] evo module evo.main_traj crashed - no logfile written (disabled)

Command: evo_traj kitti KITTI_00_gt.txt -p

Console output:


# remove this line and paste your console output HERE - no screenshots please

Additional files: Please attach all the files needed to reproduce the error.

Please give also the following information:

remove this line and paste your config HERE

MichaelGrupp commented 5 months ago

Tk / tkinter is not installed. Normally, this is part of Python distros. If you're missing it, please search in the internet how to install it on your specific operating system.