Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.11.2
-
None
-
KDE
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Description
Running Pyside2 code from conda environment return the following error :
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. Reinstallin g the application may fix this problem.
How to reproduce the bug ?
Install conda with Python 3.7: https://conda.io/miniconda.html
Create conda environment :
conda create -n test
Install Pyside2
pip install PySide2
Run the following code
from PySide2.QtWidgets import * from PySide2.QtCore import * import sys app = QApplication() w = QWidget() w.show() app.exec_()
It doesn't show anything and return the following error
(test) ➜ ~ python test.py 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. Reinstallin g the application may fix this problem. Available platform plugins are: minimal, offscreen, xcb.
If I don't use virtual environment, it works quite well. And PyQt5 runs well too in virtual environment.
Tested on 2 Linux Computer. ( work with Mac and windows )
Attachments
Issue Links
- duplicates
-
PYSIDE-761 Application fails when installing PyPi wheel (5.11.1) into Anaconda environment
- Closed