Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Problems Importing PySide2.QCharts
Forum Update on Monday, May 27th 2025

Problems Importing PySide2.QCharts

Scheduled Pinned Locked Moved Solved Qt for Python
qt for pythonpyside2
2 Posts 1 Posters 967 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    metalshreds
    wrote on last edited by metalshreds
    #1

    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/pyside2

    Example I'm looking at
    https://doc.qt.io/qtforpython/PySide2/QtCharts/index.html#detailed-description

    I run: import PySide2.QtCharts
    which tells me is unused, then try
    series = QtCharts.QLineSeries()
    and get the error: NameError: name 'QtCharts' is not defined

    Any help is appreciated, thanks!

    M 1 Reply Last reply
    0
    • M metalshreds

      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/pyside2

      Example I'm looking at
      https://doc.qt.io/qtforpython/PySide2/QtCharts/index.html#detailed-description

      I run: import PySide2.QtCharts
      which tells me is unused, then try
      series = QtCharts.QLineSeries()
      and get the error: NameError: name 'QtCharts' is not defined

      Any help is appreciated, thanks!

      M Offline
      M Offline
      metalshreds
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved