Search code examples
pythonqtpysidepyside2

Missing classes in PySide2


I just upgraded the Python version (Ubuntu, miniconda3, pip) from 3.9 to 3.11 and found that the classes QRegularExpressionValidator and QDeadlineTimer are missing from PySide2 now. Have they been deprecated?

However, the PySide version stayed the same (PySide2==5.15.2.1).

I downgraded to Python 3.9 and it's there again in the PySide2 package.


Solution

  • Converting from comment.

    Looking at the library on PyPI there seems to only be wheels up to version 3.10, so maybe there are some compatibility issues with 3.11.

    PyPI PySide2

    Requires: Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.11