-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running #38
Comments
I ran into the same problem, saying 'ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running ', |
Fixed: def align_trajectories(ref_poses, est_poses): def plot_pose(ref_poses, est_poses, output_path, vid=False):
|
It worked. Thank you very much! |
I've configured the environment, then ran the code
python run_cf3dgs.py -s data/Tanks/Francis/ --mode train --data_type tanks
. It reported an error:Traceback (most recent call last):
File "/home/l/disk_4T/zz/CF-3DGS/run_cf3dgs.py", line 13, in
from trainer.cf3dgs_trainer import CFGaussianTrainer
File "/home/l/disk_4T/zz/CF-3DGS/trainer/cf3dgs_trainer.py", line 51, in
from utils.vis_utils import interp_poses_bspline, generate_spiral_nerf, plot_pose
File "/home/l/disk_4T/zz/CF-3DGS/utils/vis_utils.py", line 16, in
from evo.tools import plot
File "/home/l/anaconda3/envs/cf3dgs/lib/python3.10/site-packages/evo/tools/plot.py", line 83, in
apply_settings(SETTINGS)
File "/home/l/anaconda3/envs/cf3dgs/lib/python3.10/site-packages/evo/tools/plot.py", line 63, in apply_settings
mpl.use(settings.plot_backend)
File "/home/l/anaconda3/envs/cf3dgs/lib/python3.10/site-packages/matplotlib/init.py", line 1233, in use
plt.switch_backend(name)
File "/home/l/anaconda3/envs/cf3dgs/lib/python3.10/site-packages/matplotlib/pyplot.py", line 279, in switch_backend
raise ImportError(
ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running
Is this because the version of "evo" is wrong? My evo version is 1.29.0 and the matplotlib version is 3.7.0, as mentioned in requirement.txt
The text was updated successfully, but these errors were encountered: