PyQt on linux

0 views
Skip to first unread message

Toke Jepsen

unread,
Sep 21, 2016, 9:38:26 AM9/21/16
to conda - Public
Hey,

Testing the latest PyQt from; https://anaconda.org/anaconda/pyqt, and I'm getting this error on linux when not running as root:

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.

PyQt 4.11.4 works fine for me, so I'm just flagging this.


Venlig Hilsen / Sincerely,

Toke Jepsen

Ray Donnelly

unread,
Sep 21, 2016, 10:22:41 AM9/21/16
to Toke Jepsen, conda - Public
Does it work when running as root?

--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CAAnXbBejN9o60StOJ1VpfkpBYunEfP_pEUUxJ_bP%2B__yEPzGMg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Toke Jepsen

unread,
Sep 21, 2016, 10:27:51 AM9/21/16
to Ray Donnelly, conda - Public
Does it work when running as root?

Yes:)

Ray Donnelly

unread,
Sep 21, 2016, 10:29:27 AM9/21/16
to Toke Jepsen, conda - Public
Did you install conda or use conda install as root then? i.e. is this just the standard root issues that conda has?

Toke Jepsen

unread,
Sep 21, 2016, 10:39:01 AM9/21/16
to Ray Donnelly, conda - Public
Did you install conda or use conda install as root then?

I installed conda as root.

The strange thing is that if I install PyQt 4.x.x as root, I don't get this issue. It's only PyQt 5.x.x.

i.e. is this just the standard root issues that conda has?

Sorry, don't know about those issues.

Guilherme Melo

unread,
Sep 21, 2016, 11:47:56 AM9/21/16
to Toke Jepsen, Ray Donnelly, conda - Public

Hi Toke,

The strange thing is that if I install PyQt 4.x.x as root, I don’t get this issue. It’s only PyQt 5.x.x.

Qt4 does not have a xcb plugin. In Qt5, GUI code was refactored, and platform specific code was moved to plugins which are found at runtime, that is why you don’t see this problem with Qt4.

The xcb plugin should be located under $CONDA_PREFIX/plugins/platforms/libqxcb.so

Qt looks for plugins based on a qt.conf (if it exists) or the env var QT_PLUGIN_PATH

You could check where Qt is looking for plugins using strace:

strace -f PROGRAM 2>&1 | grep libqxcb.so

Try run this as root and then as a regular user. See if the tried paths change

Hope this helps,

Guilherme


--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.

Patrick Burger

unread,
Jan 31, 2017, 4:24:48 AM1/31/17
to conda - Public, tokej...@gmail.com
yes it does! how can I fix it without running as su?

Luis Garrido

unread,
Oct 8, 2017, 10:45:29 PM10/8/17
to conda - Public, tokej...@gmail.com, codeg...@gmail.com
Hi there! Any updates to Patrick Burger question? I'm trying to execute anaconda-navigator (command line) for a user which is not su or has sudo access and getting the same error. Anaconda (version installed: Anaconda24.4.0Linuxx86_64.sh) was performed by a regular user (no su or sudo "super power" :). Best regards!
Reply all
Reply to author
Forward
0 new messages