-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt platform plugin “xcb” in “” cannot be loaded on CentOS #2436
Comments
Doing some further research some possible solutions would be doing the following. Running: if that doesn’t work, trying,
Resources
|
Until now I’ve accessed the docker image without being a root user by doing the following:
But now I get a permissions error:
If I run the command without -o , then I get the same error as when running the command being a root user:
I’ll dig further into this. |
@jcohenadad Digging further into this i think that Qt is not installed, I tried following these steps,
,but it didn't seem to help. I've also tried installing the CentOS 7 system qt5 by doing
Without any positive effect. Do you think I'm overseeing something? Other resources
|
@gmotzespina do you have any update on this issue? @zougloub do you think you can help us there? |
No, until now I haven't had any progress on the matter. I'm gonna continue working on this today. |
I haven't been able to do much progress on this. Do you think pairing on this would be helpful to find a solution @jcohenadad, @zougloub. In any case I'll continue working on this. |
@gmotzespina have you tried installing |
@agahkarakuzu No I haven't tried it out, but I'll do it. Thanks ! I'll keep you updated. |
Installing |
@gmotzespina sorry to hear that it did not work. Just out of curiosity, are you trying to achieve this in a container or on your commputer? Because |
Yeah Actually I'm trying just that:
After having installed your favorite OS, run SCT installer:
|
Also I'm not sure if Qt is even supported on centos: https://doc.qt.io/qt-5/linux.html. I might be missing something though. EDITIgnore
|
As far as I am concerned, you should be OK with Qt on Centos. The problem appears to me that you are trying to access GUI components through a container without passing the commands to let Docker engine know where to look for that communication. Can you try adding the following arguments to your
If this one does not work, I can get my hands dirty and look deeper on my machine to inspect what's going on. |
@gmotzespina what let's you think that Qt is not supported on centos? the link you provided clearly lists centos as an OS |
Ignore my comment, I've miss read the docs. |
@agahkarakuzu I've tried following the same steps as shown above just instead of running It keeps failing the same way,
|
OK give me some time, will look into this and get back to you. |
Nice, thanks a bunch, I'm case you want to pair let me know! |
Here is a detailed debug report to begin with:
|
I kept track of missing dependencies using
After this installation, docker run -it sctagah` gices the following: It is no longer complaining about missing dependencies, but asking for host to provide an xhost. i connected Good news, your This issue may be resolved after properly installing Gotta take of know, I hope this gives you a better head start to proceed. |
@agahkarakuzu thank you so much for your help!!! 🙏 |
@agahkarakuzu Thanks a bunch! I'll keep on going with your progress. |
@agahkarakuzu Sorry to bother you again. I've tried your solution using this Dockerfile:
First of all it didn't work because using a user without privileges throws the following error:
So I removed the generation of the non-root user and used this docker file:
Then I followed the following steps
After running the steps above I get the following;
I wasn't able to get to the point where you left not even by using the docker file you posted. Did I miss something? |
Hey @gmotzespina, it is interesting that you are running into a different issue with the same Dockerfile. First off the command you use to run your container is not enough to bind your xhost with the container.
Another suggestion is that build your images using
I am doing that painful docker cleaning on my macbook again, I will rebuild image with a cleaner version of the Dockerfile I gave you above. I removed extra layers and some redundant env vars to give it a better structure. I could not test this yet, there may be syntax errors in it.
|
Using the image built with the Functionality mentioned in the panel is there. I can navigate, zoom in out, change brightness, add labels etc. Note that I run it by passing My steps to run this container:
Once again, these steps are going to work if you are using OSX. If you are using Ubuntu, then you need to do something like:
Just one note, when I hit right arrow to move through slides, the app crashes when the requested slice number exceeds that of max available. If this is not on purpose, I can report it as a BUG? |
@agahkarakuzu yes please! thank you so much for your help! |
Not at all @jcohenadad, opening an issue for the bug. |
@agahkarakuzu Thanks a bunch for your help, you've been really helpful. @jcohenadad I guess I http://forum.spinalcordmri.org/t/sct-label-utils-error/160/9 I'm not sure if there is a PR to raise, since it seems that just running it with the right configuration and steps mentioned by @agahkarakuzu should solve Yazhuo's problems right? |
@gmotzespina yup, sounds good. However it would be good to check the environment upon installation and spit out relevant message |
@jcohenadad I've updated the wiki https://github.com/neuropoly/spinalcordtoolbox/wiki/testing, let me know if you think I missed something, or if there are some typos. Will proceed with the environment checkup. |
|
@gmotzespina can you please let the user know how to solve the issue on the forum please (top priority), thanks |
@jcohenadad Done, I've also fixed the wiki: https://github.com/neuropoly/spinalcordtoolbox/wiki/testing |
There is no follow-up from the user about this issue so we can close |
Description
When Running
The following error appears,
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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb. Aborted
Steps to Reproduce
Install SCT following the instructions for CentOS shown here
Download any test data, in my case I ran
Expected behavior:
The following image should appear:
Actual behavior:
I get the following output
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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb. Aborted
OS
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-957.1.3.el7.x86_64
Architecture: x86-64
Usefull resources
The text was updated successfully, but these errors were encountered: