Plugin error from demux: couldn't connect to display ":2.0"

Hi, I got some errors when I run demux summarize:

The code was:
qiime demux summarize
--i-data demux.qza
--o-visualization demux.qzv

The outcome was:
Plugin error from demux:
couldn't connect to display ":2.0"
Debug info has been saved to /temp/qiime2-q2cli-err-pxwciemp.log

This is the debug info:

/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/seaborn/distributions.py:2551: FutureWarning: distplot is a deprecated function and will be removed in a future version. Please adapt your code to use either displot (a figure-level function with similar flexibility) or histplot (an axes-level function for histograms).
warnings.warn(msg, FutureWarning)
Traceback (most recent call last):
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/q2cli/commands.py", line 329, in call
results = action(**arguments)
File "", line 2, in summarize
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/qiime2/sdk/action.py", line 245, in bound_callable
output_types, provenance)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/qiime2/sdk/action.py", line 452, in callable_executor
ret_val = self._callable(output_dir=temp_dir, **view_args)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/q2_demux/_summarize/_visualizer.py", line 177, in summarize
ax = sns.distplot(result, kde=False, color='black')
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/seaborn/distributions.py", line 2554, in distplot
ax = plt.gca()
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/matplotlib/pyplot.py", line 879, in gca
return gcf().gca(**kwargs)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/matplotlib/pyplot.py", line 611, in gcf
return figure()
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/matplotlib/pyplot.py", line 546, in figure
**kwargs)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 3358, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py", line 888, in new_figure_manager_given_figure
window = tk.Tk(className="matplotlib")
File "/group/bioinfo/apps/apps/miniconda-4.8.2/envs/qiime2-2020.11/lib/python3.6/tkinter/init.py", line 2023, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":2.0"

Does anyone can help me to figure this out and visualize my demux.qza?
Thanks in advance !!!

Hi!
Please, check if this solution can solve your issue.

Thanks! Timur That help me very much

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.