Skip to content
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 #23

Open
YuZhang337 opened this issue Oct 10, 2020 · 2 comments

Comments

@YuZhang337
Copy link

Hi,
When running TADtool using an iced matrix file and its corresponding bed file, generated from the HiC-Pro pipeline, I get the following error.

_Traceback(most recent call last):
File "/miniconda2/envs/hic/bin/tadtool", line 447, in
TADtool()
File "/miniconda2/envs/hic/bin/tadtool", line 44, in init
getattr(self, args,command)()
File "/miniconda2/envs/hic/bin/tadtool", line 203, in plot
import tadtool.plot as tp
File "/miniconda2/envs/hic/lib/python3.8/site-packages/tadtool/plot.py", line 8, in
import matplotlib.pyplot as plt
File "/miniconda2/envs/hic/lib/python3.8/site-packages/tadtool/plot.py", line 2320, in
switch_backend(rcParams["backend"])
File "/miniconda2/envs/hic/lib/python3.8/site-packages/tadtool/plot.py", line 268, in switch_backend
raise ImportError(
ImportError: Cannot load backend 'TKAgg' which requires the 'tk' interactive framework, as 'headless' is currently running

How can I fix it? Thanks!

@kaukrise
Copy link
Collaborator

Hi, sorry about the late reply. This error implies that you are running TADtool in an environment that does not support interactive plotting, typically a computing cluster or similar. Please install TADtool on a machine that supports it and try again.

@hanshanmengqi
Copy link

Hello @kaukrise,

I work with the Linux system, and I encountered this error as well.
I tried using JupyterLab, but I still encountered the same problem.
Could you give me any advice?

Thanks
Han

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants