Solved Problems Importing PySide2.QCharts
-
Using latest Anaconda 3.7 using spyder for coding
have tried installed pyside2 through conda as well as through pip but still can't import the charts
https://anaconda.org/conda-forge/pyside2Example I'm looking at
https://doc.qt.io/qtforpython/PySide2/QtCharts/index.html#detailed-descriptionI run: import PySide2.QtCharts
which tells me is unused, then try
series = QtCharts.QLineSeries()
and get the error: NameError: name 'QtCharts' is not definedAny help is appreciated, thanks!
-
I was able to solve this by switching to pycharm, for some reason spyder did not want to cooperate, kept getting DLL not found errors, "application failed could not find or load qt plugin could not be initialized", and importing QCharts would not work. everything seems to be working now thorough pycharm.