bohning / usdb_syncer

MIT License
58 stars 9 forks source link

Could not find the Qt platform plugin "xcb" in "" #264

Closed logon84 closed 1 month ago

logon84 commented 1 month ago

I am getting this error trying to open the latest linux version:

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

I didn't face this problem with 5.0, until it broke due to the changes in usdb site of course. Some clues?

bohning commented 1 month ago

According to this thread, you could try

logon84 commented 1 month ago

According to this thread, you could try

* running it with QT_DEBUG_PLUGINS=1 set

* sudo apt-get install libxcb-xinerama0
  and see if that yields something useful / works.

Nothing new in the output after setting QT_DEBUG_PLUGINS=1 or installing libxcb-xinerama0 (it was already installed). I am using Linux Mint 21.3 in case someone experiences also the same.

logon84 commented 1 month ago

If I create the directory "platforms" next to the USDB syncer executable and copy the file /lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb inside, I get the output:

qt.core.plugin.factoryloader:` checking directory path "/home/logon/.ultrastardx/songs/platforms" ...
qt.core.plugin.factoryloader:` looking at "/home/logon/.ultrastardx/songs/platforms/libqxcb.so"
qt.core.plugin.loader:` Found metadata in lib /home/logon/.ultrastardx/songs/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}

qt.core.plugin.loader: In /home/logon/.ultrastardx/songs/platforms/libqxcb.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
qt.core.plugin.factoryloader: "The plugin '/home/logon/.ultrastardx/songs/platforms/libqxcb.so' uses incompatible Qt library. (5.15.0) [release]" 
         not a plugin
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
bohning commented 1 month ago

It uses Qt 6.6 (PySide6) if that is of any help.

RumovZ commented 1 month ago

It seems to be an issue with PyInstaller. I've fixed this in 5b4b43f by pinning an older version. There should be a new release soon.