# Problem with code\_saturne gui

**URL:** <https://code-saturne.org/forum/t/problem-with-code-saturne-gui/2256>\
**Category:** Installation issues\
**Created:** [January 22, 2023, 2:59pm UTC](https://code-saturne.org/forum/t/problem-with-code-saturne-gui/2256 "2023-01-22T14:59:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ximeng](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/x/8c91f0/32.png) [@ximeng](https://code-saturne.org/forum/u/ximeng)\
**Post date:** [January 22, 2023, 2:59pm UTC](https://code-saturne.org/forum/t/problem-with-code-saturne-gui/2256/1 "2023-01-22T14:59:57Z")

</div>

Hello,

I fully installed the code\_saturne v7.2.0 in WSL ubuntu20.04.5. But I couldn’t open the gui. When I ran ‘code\_saturne gui’, it showed that  
‘qt.qpa.xcb: could not connect to display  
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.  
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.  
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.  
Aborted (core dumped)’

What should I do about this?  
Any suggestion would be very appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [January 22, 2023, 7:42pm UTC](https://code-saturne.org/forum/t/problem-with-code-saturne-gui/2256/2 "2023-01-22T19:42:47Z")

</div>

Hello,

Is this WSL or WSL2 ? In WSL, you need to install and run an X server, and type

> export DISPLAY=:0

in the terminal (or in your login environment).

In WSL2, this should not be necessary, but I have not tested this. With some versions of Ubuntu + WSL, we also had an issue which required a workaround, Some users have reported issues detecting/loading PyQt on WSL-based Debian, Ubuntu, or Arch Linux systems. This is related to the following WSL issue. [ELF section .note.ABI-tag breaks shared libraries · Issue #3023 · microsoft/WSL · GitHub](https://github.com/Microsoft/WSL/issues/3023)  
This does not seem to appear anymore with more recent systems.

In case this might be the issue, the workaround seems to be to run:

```plaintext
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

```

Or

> sudo strip --remove-section=.note.ABI-tag /usr/lib64/libQt5Core.so.5

depending on the `libQt5Core.so.5` installation path.

Regards,

Yvan

---

<div class="post-metadata">

**Author:** ![ximeng](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/x/8c91f0/32.png) [@ximeng](https://code-saturne.org/forum/u/ximeng)\
**Post date:** [January 22, 2023, 8:56pm UTC](https://code-saturne.org/forum/t/problem-with-code-saturne-gui/2256/3 "2023-01-22T20:56:39Z")

</div>

Hello, Yvan

It works for me! Thanks a lot. I use WSL (not WSL2). And I follow this link to install X server: [https://www.youtube.com/watch?v=68\_FgUGQGhc](https://www.youtube.com/watch?v=68_FgUGQGhc).

For the problem you mentioned “detecting/loading PyQt on WSL-based Debian, Ubuntu, or Arch Linux systems”, I also encountered yesterday, and I solved it in the same way as you mentioned, which could also be found in this link: “[Pre installation: Linux distribution packages · code-saturne/code\_saturne Wiki · GitHub](https://github.com/code-saturne/code_saturne/wiki/Pre-installation:-Linux-distribution-packages)”

Very appreciate! Hope these issues could be stated on some official websites since I search for a long time and got many different answers before I got the right solution.

Best regards,  
Ximeng

---

<div class="post-metadata">

**Author:** ![ximeng](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/x/8c91f0/32.png) [@ximeng](https://code-saturne.org/forum/u/ximeng)\
**Post date:** [July 20, 2023, 12:18pm UTC](https://code-saturne.org/forum/t/problem-with-code-saturne-gui/2256/4 "2023-07-20T12:18:44Z")

</div>

Dear Yvan,

I got the same problem with my MAC with XQuartz:

"code\_saturne gui  
qt.qpa.xcb: could not connect to display :0  
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.  
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.

Aborted"

I tried “export DISPLAY=:0” but it didn’t work. Could you please help me about this? Thanks!

Best regards,  
Ximeng

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [July 20, 2023, 2:09pm UTC](https://code-saturne.org/forum/t/problem-with-code-saturne-gui/2256/5 "2023-07-20T14:09:41Z")

</div>

Hello,

Do other X11 applications work ? (i.e. is the X11 server launched correctly) ? How about other Qt or PyQt applications ? If you have none, I can try to find a PyQt “hello world” program to check.

I have occasionally observed this type issue also on other Qt programs on some machines (even without Python), and this is usually a Qt installation or environment issue.

Best regards,

Yvan
