https://labs.parabola.nu/https://labs.parabola.nu/favicon.ico?15367742552020-08-20T03:35:20ZParabola Issue TrackerPackages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=152582020-08-20T03:35:20Zbill-auger
<ul><li><strong>Subject</strong> changed from <i>[qutebrowser] Unable to start</i> to <i>[qutebrowser] Unable to start, using wayland</i></li></ul><p>firstly, i beleive that should be 'QT_QPA_PLATFORMTHEME' - but secondly, setting QT_QPA_PLATFORMTHEME is only changing the programs visual appearence - that is not "running under X" - you would need to install X and start X to do that - off-hand, i know that wayland can not run all programs - wayland requires the xwayland extension to run some programs - do you have it installed?</p>
<pre>
$ pacman -Ss xorg-server-xwayland
extra/xorg-server-xwayland 1.20.8-3 (xorg)
run X clients under wayland
</pre> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=152912020-08-30T12:22:48Zsseneca
<ul></ul><p>QT_QPA_PLATFORMTHEME sets the theme, QT_QPA_PLATFORM can be used in the way I described as detailed here: <a class="external" href="https://wiki.archlinux.org/index.php/Wayland#Qt_5">https://wiki.archlinux.org/index.php/Wayland#Qt_5</a></p>
<p>yeah, I have xwayland installed and it works fine (I use emacs all the time which still needs xwayland)</p> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=152922020-08-30T19:43:20Zbill-auger
<ul></ul><p>there is a bug report upstream that look similar - try running this command:<br /><pre>
$ python3 -c "from PyQt5.QtWidgets import QApplication; app = QApplication([])"
</pre></p>
<p>if that gives the same error as qutebrowser, the upstream bug report suggests that it was caused by PyQt5 being installed by `sudo pip`</p> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=152962020-08-30T20:32:19Zsseneca
<ul></ul><p>Wayland remains broken:</p>
<pre><code>
❯ python3 -c "from PyQt5.QtWidgets import QApplication; app = QApplication([])"
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" 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.
zsh: abort (core dumped) python3 -c "from PyQt5.QtWidgets import QApplication; app = QApplication([])"
</code></pre>
<p>But under X doesn't give me an error message and seems to work fine. Also I have PyQt5 installed from pacman (python-pyqt5), not from pip</p> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=152972020-08-30T21:00:45Zbill-auger
<ul></ul><p>you could try reinstalling 'python-pyqt5' to be sure you have the arch files<br /><pre>
# pacman -S python-pyqt5
</pre></p>
<p>that error suggests that the problem is not with qutebrowser; but related to pyqt5</p>
<p>i would try some other programs which use pyqt5 - agordejo, frescobaldi, openshot, tribler, or any others listed by:</p>
<pre>
$ pacman -Sii python-pyqt5 | grep Required
</pre> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=152982020-08-30T21:07:46Zbill-auger
<ul></ul><p>i found several discussions about this - all of them indicate that there is some version mismatch of pytqt5 with the system QT - these maybe the most relevant - both have solutions which satisfied the OP - see if any of the advice in these help your situation</p>
<p><a class="external" href="https://bbs.archlinux.org/viewtopic.php?id=247030">https://bbs.archlinux.org/viewtopic.php?id=247030</a></p>
<p><a class="external" href="https://forum.qt.io/topic/111553/solved-qt-qpa-plugin-could-not-find-the-qt-platform-plugin-xcb-in/9">https://forum.qt.io/topic/111553/solved-qt-qpa-plugin-could-not-find-the-qt-platform-plugin-xcb-in/9</a></p> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=153002020-08-30T21:23:29Zsseneca
<ul></ul><p>yeah you're right on the pyqt5, trying picard and vico gave me the same error. thanks for those links, when I set QT_DEBUG_PLUGINS to 1 I get a more interesting error message:</p>
<p>22:18:06 WARNING: QLibraryPrivate::loadPlugin failed on "/home/sseneca/.local/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-generic.so" :</p>
<p>"Cannot load library /home/sseneca/.local/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqwayland-generic.so: (/home/sseneca/.local/lib/python3.8/site-packages/PyQt5/Qt/lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/lib/libQt5WaylandClient.so.5))"</p>
<p>so yeah it looks like a version mismatch I guess? which I don't understand, since I have everything installed from the repos, and there is no mismatch there</p> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=153012020-08-30T21:33:05Zbill-auger
<ul></ul><p>this is almost certainly the problem:<br /><pre>
"Cannot load library /home/sseneca/.local/lib/python3.8/site-packages/PyQt5/..."
</pre></p>
<p>that is suggesting that pip is installed is is over-riding the system files</p>
<p>do you have PyQt5 installed in your HOME dir?<br /><pre>
$ ls /home/sseneca/.local/lib/python3.8/site-packages/PyQt5/
</pre></p>
<p>if it does, i would use pip to uninstall pyqt5; - or forcefully delete that PyQt5 dir if necessary</p>
<p>im not sure why it would be looking there in the first place though - does your $PATH or $PYTHON_HOME include anything under $HOME/.local/lib/ ? - if it does, i would remove those references; and use pip only to install packaging into a virtual_env</p> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=153102020-08-31T12:25:23Zsseneca
<ul></ul><p>I don't have $PYTHON_HOME, nor do I have any reference to $HOME/.local/lib, but I do have $HOME/.local/bin on my PATH before anything else. that shouldn't be causing this issue though, right?</p>
<p>as for the rest you're completely correct -- I had pip installed for whatever reason with a few packages installed. I have no use for pip and can't remember why I had it installed so I've uninstalled everything it installed and removed it, and things seems to be working again now.</p>
<p>thanks for the help!</p> Packages - Bug #2870: [qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)https://labs.parabola.nu/issues/2870?journal_id=153152020-08-31T20:06:00Zbill-auger
<ul><li><strong>Status</strong> changed from <i>unconfirmed</i> to <i>not-a-bug</i></li><li><strong>Subject</strong> changed from <i>[qutebrowser] Unable to start, using wayland</i> to <i>[qutebrowser] Unable to start, using wayland (no Qt platform plugin could be initialized)</i></li></ul>