question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

could not connect to display ":0.0"

See original GitHub issue

Conversion 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
turtle-meicommented, Jun 23, 2020

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.

0reactions
jerabaul29commented, Jun 23, 2020

But this is solved now, so closing, if you have any more problems feel free to re open 😃 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tkinter couldn't connect to display ":0" - Stack Overflow
I'm using ubuntu on windows. I have tried using both python3 and 2.7 but I get the same message. If you are running...
Read more >
Error: "Couldn't Connect to Display ':0'"... - Intel
Error: "Couldn't Connect to Display ':0'" When Connecting to Training and Learnings Suite (TLS) Remote Agent · Verify the display name by running...
Read more >
'Couldn't connect to display ":0.0"' error on Cygwin
And of course it says it couldn't connect to display ":0.0". The Cygwin/X server has been installed strictly according to http://x.cygwin.com/.
Read more >
[SOLVED] Applications wont start, "Could not connect to ...
I've looked through a few files and as far as I can tell, everything is set to display 0.0 and from what I've...
Read more >
qt.qpa.xcb: could not connect to display :0 | Qt Forum
Hi, I've been trying to set up QtSLiM and it isn't working. I enter export LIBGL_ALWAYS_INDIRECT=; export DISPLAY=:0; ~/build/QtSLiM and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found