could not connect to display ":0.0"
See original GitHub issueConversion done mesh_file = mesh/turek_2d.h5 -0.2 0.21 total_number_of_probes = 151 No protocol specified No protocol specified Traceback (most recent call last): File "make_mesh.py", line 2, in <module> env.resume_env(plot=500, remesh=True) File "/home/yufeimei/Downloads/singularity-2.5.1/my img/ellipse/ellipse_y/baseline_flow/env.py", line 181, in resume_env simu_name = simu_name) File "/home/yufeimei/Downloads/singularity-2.5.1/my img/ellipse/ellipse_y/baseline_flow/../Env2DCylinder.py", line 132, in __init__ self.start_class(complete_reset=True) File "/home/yufeimei/Downloads/singularity-2.5.1/my img/ellipse/ellipse_y/baseline_flow/../Env2DCylinder.py", line 286, in start_class self.visual_inspection() File "/home/yufeimei/Downloads/singularity-2.5.1/my img/ellipse/ellipse_y/baseline_flow/../Env2DCylinder.py", line 461, in visual_inspection plt.subplots(total_number_subplots, 1) File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 1177, in subplots fig = figure(**fig_kw) File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 527, in figure **kwargs) File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 84, in new_figure_manager return new_figure_manager_given_figure(num, figure) File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 92, in new_figure_manager_given_figure window = Tk.Tk() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: couldn't connect to display ":0.0" Aborted (core dumped)
I can run the code correctly in debian,but there are some qusetions when i use a new ubantu.could not display “:0.0”, It can not show the figure.can you give me some suggestions?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
aaa,so happy ! It run succesfully.I commented the code that about plotting.and delete the export DISPLAY=:0.0.Then evering is good.Thank you for your suggestions.
But this is solved now, so closing, if you have any more problems feel free to re open 😃 .