FS#77315 - [python-pyqt5] PyQt5.Qt doesn't have QValidator

Attached to Project: Arch Linux
Opened by Daniel Estévez (destevez) - Sunday, 29 January 2023, 12:40 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 29 January 2023, 18:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading from python-pyqt5 5.15.7-3 to 5.15.8-1, I have seen that QValidator is missing from PyQt5.Qt.

To reproduce the problem, we can run the following in a Python interpreter:

import PyQt5.Qt
PyQt5.Qt.QValidator

This works with python-pyqt5-5.15.7-3 but doesn't work with python-pyqt5-5.15.8-1.

The fact that QValidator is missing breaks gnuradio-companion.
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 29 January 2023, 18:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-pyqt5 5.15.8-2
Comment by Lucio Gomes (luciorgomes) - Sunday, 29 January 2023, 16:51 GMT
I got a similar problem here. Carla stoped working here. It breaks with a import error with "from PyQt5.Qt import PYQT_VERSION_STR":

Traceback (most recent call last):
File "/usr/share/carla/carla", line 22, in <module>
from carla_host import *
File "/usr/share/carla/carla_host.py", line 53, in <module>
import ui_carla_host
File "/usr/share/carla/ui_carla_host.py", line 847, in <module>
from widgets.draggablegraphicsview import DraggableGraphicsView
File "/usr/share/carla/widgets/draggablegraphicsview.py", line 30, in <module>
from carla_shared import MACOS, CustomMessageBox, gCarla
File "/usr/share/carla/carla_shared.py", line 41, in <module>
from PyQt5.Qt import PYQT_VERSION_STR
ImportError: cannot import name 'PYQT_VERSION_STR' from 'PyQt5.Qt' (/usr/lib/python3.10/site-packages/PyQt5/Qt.abi3.so)
Comment by Antonio Rojas (arojas) - Sunday, 29 January 2023, 17:52 GMT
Indeed, PyQt5.Qt is totally empty. This is a regression in sip 6.7.6.

Loading...