diff mbox series

[2/2] add missing SIP module for PyQt5

Message ID 20240401084841.439073-2-hypnotoad@lindra.de
State Superseded
Headers show
Series [1/2] package/python-pyqt5-sip: new package | expand

Commit Message

Ralf Dragon April 1, 2024, 8:48 a.m. UTC
This fixes the following runtime error when importing PyQt5 in python:

from PyQt5.QtCore import *
ModuleNotFoundError: No module named 'PyQt5.sip'

The problem was likely triggered by the atomic upgrade from 5.7 to
5.15 in b36ce7e. This commit is part of the 2022-2024 LTS.

Signed-off-by: Ralf Dragon <hypnotoad@lindra.de>
---
Changes v1 -> v2:
 - split off the new packet to separate patch

Backport to: 2023.*.x 2024.02.x
(2022 LTS branches are probably also affected but I could not test any, 2021.11.3 is fine)

 package/python-pyqt5/Config.in | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/package/python-pyqt5/Config.in b/package/python-pyqt5/Config.in
index 9fa7676f98..0b37f14317 100644
--- a/package/python-pyqt5/Config.in
+++ b/package/python-pyqt5/Config.in
@@ -5,6 +5,7 @@  config BR2_PACKAGE_PYTHON_PYQT5
 	bool "python-pyqt5"
 	depends on BR2_PACKAGE_QT5
 	select BR2_PACKAGE_PYTHON_SIP
+	select BR2_PACKAGE_PYTHON_PYQT5_SIP # runtime
 	select BR2_PACKAGE_QT5BASE_GUI
 	help
 	  Python bindings for Qt 5