Closed Rummell closed 2 years ago
Hello @Rummell , I'm quite late, but did you solved the problem? Currently I'm trying to run Phy on Kubuntu 21.10 and saw the same problems, but only in Wayland-Sessions. When I switch to X11 phy works normally. In RedHat Linux 8 the default display server is also Wayland, what might explain your problems.
Does anybody successfully managed to run Phy in a Wayland session?
It seems our issue was related to missing library files necessary to run PyQt5 that are required for phy2b5. And not a X11/Wayland problem for us.
We were able to determine which library files were missing using the commmand:
ldd ~/anaconda3/envs/phy2b5/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so | grep -i "not found"
Then were able to install the missing library packages using
yum
In the end, I was successfully able to install phy2b5 using the suggested environment.yml
file by @grahamfindlay in Issue #1138
Many thanks for the help!
When running with the lastest Anaconda 3 and Linux RedHat 8.1, on a fresh phy environment install, I have a problem trying to launch the GUI.
Following advice from Issue #875 unfortunately did not work. i.e. Installing pyqt from anaconda instead of pip ( conda install -c anaconda pyqt)
The error msg I got after running export QT_DEBUG_PLUGINS=1 beforehand was this:
Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/mnt/pns/home/anaconda3/envs/phy2b5/bin/platforms" ... Cannot load library /mnt/pns/home/anaconda3/envs/phy2b5/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/mnt/pns/home/anaconda3/envs/phy2b5/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" : "Cannot load library /mnt/pns/home/anaconda3/envs/phy2b5/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)" 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.
Any help would be greatly appreciated..