qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in
-
I use pycharm and did pip install pyqt5 and pip install pyqt5-contrib. On other pc all work but i have linux-mint and it's error
-
@Nikolay_spb
What is your$DISPLAY
environment variable set to? Are you running a VM or what/how for this Mint and how do you connect to it? -
i have three monitor benq and two hp.
i use env and install in it's
And I have a desktop computer -
@Nikolay_spb said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:
i use env and install in it's
I do not know what this phrase means.
In any case your issue is
qt.qpa.xcb: could not connect to display :1.0
. Usually the main display is0:0
. That is all I know. Someone else will understand this X display issue better than I and hopefully comment. -
@Nikolay_spb Your PyQt installation has nothing to do with QtCreator, how did you install QtCreator?
-
very thanks
-
@eyllanesc sudo apt install qtcreator
-
@Nikolay_spb Are you using any special environment?
-
@eyllanesc no i use
python3 -m venv env
I use these libraries, maybe it will help
click==7.1.2 greenlet==1.1.1 numpy==1.21.2 opencv-contrib-python==3.4.15.55 opencv-python==4.3.0.36 opencv-python-headless==4.5.3.56 PyQt5==5.15.4 PyQt5-Qt5==5.15.2 PyQt5-sip==12.9.0 PyQt5-stubs==5.15.2.0 PySide2==5.15.2 python-dotenv==0.19.0 qtarmsim==0.5.5 shiboken2==5.15.2 shiboken6==6.1.3 SQLAlchemy==1.4.25 tabulate==0.8.9
-
@Nikolay_spb I think I have not let myself be understood: QtCreator is orthogonal to PyQt so please don't talk about pyqt anymore. My question is if you are using a VM, docker, etc.
-
@eyllanesc no i use desktop pc and os linux mint
-
@Nikolay_spb So it seems to me a bug in your OS, I recommend you report it. And so that you do not confuse them, do not mention anything about python that is irrelevant. In this forum little or nothing will be able to help you.
-
@Nikolay_spb Does your OS installation have a desktop manager?
-
@eyllanesc said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:
Does your OS installation have a desktop manager?
yes, i have desktop manager -
@Nikolay_spb said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in:
yes, i have desktop manager
Would be nice to mention which one.
Is X server running or do you use something else (like Wayland)?