Giter VIP home page Giter VIP logo

Comments (4)

892768447 avatar 892768447 commented on June 8, 2024

export QT_DEBUG_PLUGINS=1
before run python script. maybe see some missing dependency libraries about xcb

from pyqt.

HasarinduPerera avatar HasarinduPerera commented on June 8, 2024

This was the result. Any suggestions? (The result was very long, this is the only part regarding xcb and also the last part)

TIA

QFactoryLoader::QFactoryLoader() looking at "/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/home/user/.local/lib/python3.9/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x3a4f250) is not the object's thread (0x3f5dbe0).
Cannot move to target thread (0x3a4f250)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/user/.local/lib/python3.9/site-packages/cv2/qt/plugins" 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: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc.

Aborted

from pyqt.

892768447 avatar 892768447 commented on June 8, 2024

maybe different version Qtxcb problem

loaded library "/home/user/.local/lib/python3.9/site-packages/cv2/qt/plugins/platforms/libqxcb.so"

/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=

from pyqt.

892768447 avatar 892768447 commented on June 8, 2024

image
Normally, PyQt5 will use the plugin library in its own directory.

check your environment variable in your python scripts at first.

import os
print(os.environ.get('PATH'))
print(os.environ.get('LD_LIBRARY_PATH'))

from pyqt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.