Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2917

QXYSeries.appendNp raises an ImportError with numpy>=2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.1
    • 6.8.0.2
    • Documentation, Shiboken
    • None
    • numpy>=2
    • d97e08248 (dev), a433f72f8 (6.8)

    Description

      QXYSeries.appendNp requires numpy<2 even for python>3.9, which is compatible with numpy>=2. As of today, the behavior is not documented at all. Please add the info into the docs and, if feasible and reasonable, add numpy>=2 support.

      The following code reproduces the issue:

      import numpy as np
      from PySide6.QtCharts import QLineSeries
      
      QLineSeries().appendNp(np.empty(1), np.empty(1))
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            stsav012 Anton Yablokov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes