This application failed to start because no Qt platform plugin could be initialized
-
@SGaist yes I have installed Conda. I try uninstall it but no change. I run the application from visual studio code but if I run it from the terminal I got this message:
adrianosavi@ProOne Dashboard % python test.py
Traceback (most recent call last):
File "test.py", line 2, in <module>
from PySide2.QtWidgets import QApplication, QDialog, QLineEdit, QPushButton
ImportError: No module named PySide2.QtWidgets
adrianosavi@ProOne Dashboard % python test.py
Traceback (most recent call last):
File "test.py", line 2, in <module>
from PySide2 import QtWidgets #import QApplication, QDialog, QLineEdit, QPushButton
ImportError: No module named PySide2
adrianosavi@ProOne Dashboard % pip install PySide2
Requirement already satisfied: PySide2 in /Users/adrianosavi/opt/anaconda3/lib/python3.8/site-packages (5.15.1)
Requirement already satisfied: shiboken2==5.15.1 in /Users/adrianosavi/opt/anaconda3/lib/python3.8/site-packages (from PySide2) (5.15.1) -
Looks like you installed all your stuff in the base conda environment which is a bad idea.
I would recommend re-install conda cleanly and create a proper environment to install PySide2.