Skip to content

Error while running pyinknife_plot  #32

@Comp-era

Description

@Comp-era

I am getting error while running pyinknife_plot, below is the log for the same,

command - mkdir plots
pyinknife_plot -c /home/skhatri/PyInKnife2/PyInKnife/config/run.yaml -ca /home/skhatri/PyInKnife2/PyInKnife/config/aggregate.yaml -cp /home/skhatri/PyInKnife2/PyInKnife/config/plot_hubs_barplot.yaml -p hubs -d aggregate -od plots

Error -
INFO:PyInKnife.pyinknife_plot:The directory '/home/skhatri/pyinknife/plots' was found.
Traceback (most recent call last):
File "/home/skhatri/anaconda3/envs/pyinteraph/bin/pyinknife_plot", line 33, in
sys.exit(load_entry_point('PyInKnife==2.0.0', 'console_scripts', 'pyinknife_plot')())
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/site-packages/PyInKnife-2.0.0-py3.9.egg/PyInKnife/pyinknife_plot.py", line 328, in main
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/site-packages/matplotlib/cbook/deprecation.py", line 451, in wrapper
return func(*args, **kwargs)
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/site-packages/matplotlib/pyplot.py", line 1287, in subplots
fig = figure(**fig_kw)
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/site-packages/matplotlib/pyplot.py", line 687, in figure
figManager = new_figure_manager(num, figsize=figsize,
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/site-packages/matplotlib/pyplot.py", line 315, in new_figure_manager
return _backend_mod.new_figure_manager(*args, **kwargs)
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 3494, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 885, in new_figure_manager_given_figure
window = tk.Tk(className="matplotlib")
File "/home/skhatri/anaconda3/envs/pyinteraph/lib/python3.9/tkinter/init.py", line 2270, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display "localhost:21.0"

Kindly help in this regard!
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions