Skip to contentSkip to conversation

package/python-pyqt5-sip: new package

PATCH Superseded Ralf Dragon 5 participants 10 messages Apr 1, 2024 – Nov 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python-pyqt5-sip: new package

This packages adds the PyQt5.sip module.

The official documentation [1] mentions that this module is needed during PyQt5 runtime. It is currently compiled without any dependencies to Qt or PyQt5, but it seems quite useless without it. The module was introduced together with PyQt 5.11 [2].

[1] https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#building-and-installing-from-source
[2] https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11

---
Changes v1 -> v2:
- fix License and make sure legal info passes
- document in commit message why this package is needed
- split off the runtime dependency 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/Config.in                              |  1 +
 package/python-pyqt5-sip/Config.in             |  4 ++++
 package/python-pyqt5-sip/python-pyqt5-sip.hash |  7 +++++++
 package/python-pyqt5-sip/python-pyqt5-sip.mk   | 14 ++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/python-pyqt5-sip/Config.in
 create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.hash
 create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.mk
package/Config.in +1 -0
index 33039331f7..d897f16120 100644
@@ -1278,6 +1278,7 @@ menu "External python modules"
 	source "package/python-pypng/Config.in"
 	source "package/python-pyqrcode/Config.in"
 	source "package/python-pyqt5/Config.in"
+	source "package/python-pyqt5-sip/Config.in"
 	source "package/python-pyratemp/Config.in"
 	source "package/python-pyroute2/Config.in"
 	source "package/python-pyrsistent/Config.in"
package/python-pyqt5-sip/Config.in new file +4 -0
new file mode 100644
index 0000000000..f7be60c8ec
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_PYTHON_PYQT5_SIP
+	bool "python-pyqt5-sip"
+	help
+	  This is the PyQt5.sip module which is needed to run PyQt5.
package/python-pyqt5-sip/python-pyqt5-sip.hash new file +7 -0
new file mode 100644
index 0000000000..fb4a8cb04d
@@ -0,0 +1,7 @@
+# from https://pypi.org/project/PyQt5-sip/12.30.0
+sha256  7f321daf84b9c9dbca61b80e1ef37bdaffc0e93312edae2cd7da25b953971d91  PyQt5_sip-12.13.0.tar.gz
+
+# Hash for license files:
+md5  9cd437778ebd1c056a76b4ded73b3a6d  LICENSE
+md5  e91355d8a6f8bd8f7c699d62863c7303  LICENSE-GPL2
+md5  7ea41d866d6638e430db5287a3f66090  LICENSE-GPL3
package/python-pyqt5-sip/python-pyqt5-sip.mk new file +14 -0
new file mode 100644
index 0000000000..0114f6db69
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-SIP-QT5
+#
+################################################################################
+
+PYTHON_PYQT5_SIP_VERSION = 12.13.0
+PYTHON_PYQT5_SIP_SITE = https://files.pythonhosted.org/packages/ee/81/fce2a475aa56c1f49707d9306b930695b6ff078c2242c9f2fd72a3214e1f
+PYTHON_PYQT5_SIP_SOURCE = PyQt5_sip-$(PYTHON_PYQT5_SIP_VERSION).tar.gz
+PYTHON_PYQT5_SIP_LICENSE = SIP
+PYTHON_PYQT5_SIP_LICENSE_FILES = LICENSE LICENSE-GPL2 LICENSE-GPL3
+PYTHON_PYQT5_SIP_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 add missing SIP module for PyQt5

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.

---
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(+)
package/python-pyqt5/Config.in +1 -0
index 9fa7676f98..0b37f14317 100644
@@ -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
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Ralf Dragon

Hi Ralf,

Quoted 11 lines · Ralf Dragon

This packages adds the PyQt5.sip module.

The official documentation [1] mentions that this module is needed during PyQt5 runtime. It is currently compiled without any dependencies to Qt or PyQt5, but it seems quite useless without it. The module was introduced together with PyQt 5.11 [2].

[1] https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#building-and-installing-from-source
[2] https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11

Quoted 8 lines

---
Changes v1 -> v2:
- fix License and make sure legal info passes
- document in commit message why this package is needed
- split off the runtime dependency 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)

All 2022.x and 2023.x branches are EOL, so this will only be backported to
2024.02.x.

Quoted 5 lines
  package/Config.in                              |  1 +
  package/python-pyqt5-sip/Config.in             |  4 ++++
  package/python-pyqt5-sip/python-pyqt5-sip.hash |  7 +++++++
  package/python-pyqt5-sip/python-pyqt5-sip.mk   | 14 ++++++++++++++

Please add yourself to the DEVELOPERS file [1] for this package. This way,
you'll get an e-mail if the package fails in the autobuilders, or when a new version is released if the package is registered on release-monitoring.org.

Quoted 23 lines
  4 files changed, 26 insertions(+)

create mode 100644 package/python-pyqt5-sip/Config.in create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.hash create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.mk

package/Config.in +1 -0
index 33039331f7..d897f16120 100644
@@ -1278,6 +1278,7 @@ menu "External python modules"
  	source "package/python-pypng/Config.in"
  	source "package/python-pyqrcode/Config.in"
  	source "package/python-pyqt5/Config.in"
+	source "package/python-pyqt5-sip/Config.in"
  	source "package/python-pyratemp/Config.in"
  	source "package/python-pyroute2/Config.in"
  	source "package/python-pyrsistent/Config.in"
package/python-pyqt5-sip/Config.in new file +0 -0
new file mode 100644
index 0000000000..f7be60c8ec

package/python-pyqt5-sip/Config.in line 4

Quoted 4 lines
package/python-pyqt5-sip/Config.in new file +4 -0
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_PYTHON_PYQT5_SIP
+	bool "python-pyqt5-sip"
+	help
+	  This is the PyQt5.sip module which is needed to run PyQt5.

Please add an upstream URL (that should point to the project's website, some
high-level intro, the documentation, or if nothing else the README). If there really is nothing specific to this package, just refer to pyqt5.

Quoted 19 lines
package/python-pyqt5-sip/python-pyqt5-sip.hash new file +7 -0
new file mode 100644
index 0000000000..fb4a8cb04d
@@ -0,0 +1,7 @@
+# from https://pypi.org/project/PyQt5-sip/12.30.0
+sha256  7f321daf84b9c9dbca61b80e1ef37bdaffc0e93312edae2cd7da25b953971d91  PyQt5_sip-12.13.0.tar.gz
+
+# Hash for license files:
+md5  9cd437778ebd1c056a76b4ded73b3a6d  LICENSE
+md5  e91355d8a6f8bd8f7c699d62863c7303  LICENSE-GPL2
+md5  7ea41d866d6638e430db5287a3f66090  LICENSE-GPL3
package/python-pyqt5-sip/python-pyqt5-sip.mk new file +0 -0
new file mode 100644
index 0000000000..0114f6db69

package/python-pyqt5-sip/python-pyqt5-sip.mk line 10

Quoted 10 lines
package/python-pyqt5-sip/python-pyqt5-sip.mk new file +10 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-SIP-QT5
+#
+################################################################################
+
+PYTHON_PYQT5_SIP_VERSION = 12.13.0
+PYTHON_PYQT5_SIP_SITE = https://files.pythonhosted.org/packages/ee/81/fce2a475aa56c1f49707d9306b930695b6ff078c2242c9f2fd72a3214e1f
+PYTHON_PYQT5_SIP_SOURCE = PyQt5_sip-$(PYTHON_PYQT5_SIP_VERSION).tar.gz
+PYTHON_PYQT5_SIP_LICENSE = SIP

SIP is not a valid SPDX license. We have the informal habit of indicating this
with multiple space-separated words (typically ending with license). See for example the python-sip package, which mentsion "SIP license".

In addition, this license declaration doesn't correspond to the license files,
which include GPL-2.0 and GPL-3.0. So I suspect the correct license declaration would be the same as for python-sip: SIP license or GPL-2.0 or GPL-3.0

Regards,
Arnout

[1] https://nightly.buildroot.org/#DEVELOPERS

package/python-pyqt5-sip/python-pyqt5-sip.mk line 14

Quoted 4 lines
package/python-pyqt5-sip/python-pyqt5-sip.mk new file +4 -0
+PYTHON_PYQT5_SIP_LICENSE_FILES = LICENSE LICENSE-GPL2 LICENSE-GPL3
+PYTHON_PYQT5_SIP_SETUP_TYPE = setuptools
+
+$(eval $(python-package))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

PATCH v3 1/2 package/python-pyqt5-sip: new package

In reply to Ralf Dragon

This packages adds the PyQt5.sip module.

The official documentation [1] mentions that this module is needed during PyQt5 runtime. It is currently compiled without any dependencies to Qt or PyQt5, but it seems quite useless without it. The module was introduced together with PyQt 5.11 [2].

[1] https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#building-and-installing-from-source
[2] https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11

---
Changes v1 -> v2:
- fix License and make sure legal info passes
- document in commit message why this package is needed
- split off the runtime dependency to separate patch

Changes v2 -> v3:
- add myself as developer
- fix license
- improve description

Backport to: 2024.02.x

---
 DEVELOPERS                                     |  3 +++
 package/Config.in                              |  1 +
 package/python-pyqt5-sip/Config.in             |  7 +++++++
 package/python-pyqt5-sip/python-pyqt5-sip.hash |  7 +++++++
 package/python-pyqt5-sip/python-pyqt5-sip.mk   | 14 ++++++++++++++
 5 files changed, 32 insertions(+)
 create mode 100644 package/python-pyqt5-sip/Config.in
 create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.hash
 create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.mk
DEVELOPERS +3 -0
index f6fc301373..9808562ac6 100644
@@ -2594,6 +2594,9 @@ F:	package/gupnp-av/
 F:	package/let-me-create/
 F:	package/nanomsg/
 
+N:	Ralf Dragon <[email protected]>
+F:	package/python-pyqt5-sip/
+
 N:	Ramon Fried <[email protected]>
 F:	package/bitwise/
 
package/Config.in +1 -0
index 33039331f7..d897f16120 100644
@@ -1278,6 +1278,7 @@ menu "External python modules"
 	source "package/python-pypng/Config.in"
 	source "package/python-pyqrcode/Config.in"
 	source "package/python-pyqt5/Config.in"
+	source "package/python-pyqt5-sip/Config.in"
 	source "package/python-pyratemp/Config.in"
 	source "package/python-pyroute2/Config.in"
 	source "package/python-pyrsistent/Config.in"
package/python-pyqt5-sip/Config.in new file +7 -0
new file mode 100644
index 0000000000..3eda2c8d1f
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_PYQT5_SIP
+	bool "python-pyqt5-sip"
+	help
+	  This is the PyQt5.sip module which is needed at runtime for
+	  the PyQt5 module from package python-pyqt5.
+
+	  https://pypi.org/project/PyQt5-sip/
package/python-pyqt5-sip/python-pyqt5-sip.hash new file +7 -0
new file mode 100644
index 0000000000..fb4a8cb04d
@@ -0,0 +1,7 @@
+# from https://pypi.org/project/PyQt5-sip/12.30.0
+sha256  7f321daf84b9c9dbca61b80e1ef37bdaffc0e93312edae2cd7da25b953971d91  PyQt5_sip-12.13.0.tar.gz
+
+# Hash for license files:
+md5  9cd437778ebd1c056a76b4ded73b3a6d  LICENSE
+md5  e91355d8a6f8bd8f7c699d62863c7303  LICENSE-GPL2
+md5  7ea41d866d6638e430db5287a3f66090  LICENSE-GPL3
package/python-pyqt5-sip/python-pyqt5-sip.mk new file +14 -0
new file mode 100644
index 0000000000..e52081ab45
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-SIP-QT5
+#
+################################################################################
+
+PYTHON_PYQT5_SIP_VERSION = 12.13.0
+PYTHON_PYQT5_SIP_SITE = https://files.pythonhosted.org/packages/ee/81/fce2a475aa56c1f49707d9306b930695b6ff078c2242c9f2fd72a3214e1f
+PYTHON_PYQT5_SIP_SOURCE = PyQt5_sip-$(PYTHON_PYQT5_SIP_VERSION).tar.gz
+PYTHON_PYQT5_SIP_LICENSE = SIP license or GPL-2.0 or GPL-3.0
+PYTHON_PYQT5_SIP_LICENSE_FILES = LICENSE LICENSE-GPL2 LICENSE-GPL3
+PYTHON_PYQT5_SIP_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
Quoted 11 lines · Ralf Dragon

This packages adds the PyQt5.sip module.

The official documentation [1] mentions that this module is needed during PyQt5 runtime. It is currently compiled without any dependencies to Qt or PyQt5, but it seems quite useless without it. The module was introduced together with PyQt 5.11 [2].

[1] https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#building-and-installing-from-source
[2] https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11

Series applied to master, thanks!

Julien.

Quoted 102 lines

---
Changes v1 -> v2:
- fix License and make sure legal info passes
- document in commit message why this package is needed
- split off the runtime dependency to separate patch

Changes v2 -> v3:
- add myself as developer
- fix license
- improve description

Backport to: 2024.02.x

---
 DEVELOPERS                                     |  3 +++
 package/Config.in                              |  1 +
 package/python-pyqt5-sip/Config.in             |  7 +++++++
 package/python-pyqt5-sip/python-pyqt5-sip.hash |  7 +++++++
 package/python-pyqt5-sip/python-pyqt5-sip.mk   | 14 ++++++++++++++
 5 files changed, 32 insertions(+)
 create mode 100644 package/python-pyqt5-sip/Config.in
 create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.hash
 create mode 100644 package/python-pyqt5-sip/python-pyqt5-sip.mk
DEVELOPERS +3 -0
index f6fc301373..9808562ac6 100644
@@ -2594,6 +2594,9 @@ F:	package/gupnp-av/
 F:	package/let-me-create/
 F:	package/nanomsg/
 
+N:	Ralf Dragon <[email protected]>
+F:	package/python-pyqt5-sip/
+
 N:	Ramon Fried <[email protected]>
 F:	package/bitwise/
 
package/Config.in +1 -0
index 33039331f7..d897f16120 100644
@@ -1278,6 +1278,7 @@ menu "External python modules"
 	source "package/python-pypng/Config.in"
 	source "package/python-pyqrcode/Config.in"
 	source "package/python-pyqt5/Config.in"
+	source "package/python-pyqt5-sip/Config.in"
 	source "package/python-pyratemp/Config.in"
 	source "package/python-pyroute2/Config.in"
 	source "package/python-pyrsistent/Config.in"
package/python-pyqt5-sip/Config.in new file +7 -0
new file mode 100644
index 0000000000..3eda2c8d1f
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_PYQT5_SIP
+	bool "python-pyqt5-sip"
+	help
+	  This is the PyQt5.sip module which is needed at runtime for
+	  the PyQt5 module from package python-pyqt5.
+
+	  https://pypi.org/project/PyQt5-sip/
package/python-pyqt5-sip/python-pyqt5-sip.hash new file +2 -0
new file mode 100644
index 0000000000..fb4a8cb04d
@@ -0,0 +1,7 @@
+# from https://pypi.org/project/PyQt5-sip/12.30.0
+sha256  

7f321daf84b9c9dbca61b80e1ef37bdaffc0e93312edae2cd7da25b953971d91 PyQt5_sip-12.13.0.tar.gz

package/python-pyqt5-sip/python-pyqt5-sip.hash new file +5 -0
+
+# Hash for license files:
+md5  9cd437778ebd1c056a76b4ded73b3a6d  LICENSE
+md5  e91355d8a6f8bd8f7c699d62863c7303  LICENSE-GPL2
+md5  7ea41d866d6638e430db5287a3f66090  LICENSE-GPL3
package/python-pyqt5-sip/python-pyqt5-sip.mk new file +8 -0
new file mode 100644
index 0000000000..e52081ab45
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-SIP-QT5
+#
+################################################################################
+
+PYTHON_PYQT5_SIP_VERSION = 12.13.0
+PYTHON_PYQT5_SIP_SITE = 

https://files.pythonhosted.org/packages/ee/81/fce2a475aa56c1f49707d9306b930695b6ff078c2242c9f2fd72a3214e1f

package/python-pyqt5-sip/python-pyqt5-sip.mk new file +6 -1
+PYTHON_PYQT5_SIP_SOURCE = PyQt5_sip-$(PYTHON_PYQT5_SIP_VERSION).tar.gz
+PYTHON_PYQT5_SIP_LICENSE = SIP license or GPL-2.0 or GPL-3.0
+PYTHON_PYQT5_SIP_LICENSE_FILES = LICENSE LICENSE-GPL2 LICENSE-GPL3
+PYTHON_PYQT5_SIP_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
--

2.39.2

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
Quoted 8 lines · Julien Olivain
Quoted 7 lines · Ralf Dragon

This packages adds the PyQt5.sip module.

The official documentation [1] mentions that this module is needed during PyQt5 runtime. It is currently compiled without any dependencies to Qt or PyQt5, but it seems quite useless without it. The module was introduced together with PyQt 5.11 [2].

Quoted 6 lines
Quoted 4 lines

[1] https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#building-and-installing-from-source
[2] https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11

Series applied to master, thanks!

And to 2024.02.x and 2024.08.x. I did fix the commit message summary of the 2nd to instead be "package/python-pyqt5: add missing SIP module" to match our conventions.

Signature · 6 lines
Bye, Peter Korsgaard

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

PATCH v3 2/2 add missing SIP module for PyQt5

In reply to Ralf Dragon

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.

---
 package/python-pyqt5/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-pyqt5/Config.in +1 -0
index 9fa7676f98..0b37f14317 100644
@@ -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
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Tested-by on v3 2/2
#7 lore raw

Re: [Buildroot] [PATCH v3 2/2] add missing SIP module for PyQt5

Am 05.04.24 um 19:54 schrieb Ralf Dragon:

Quoted 9 lines

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.

Ran into the same problem, found and applied both patches on 2024.02, compiled a qt5 config including pyqt5 for imx8mp and successfully ran it on the target.

Quoted 9 lines
---
  package/python-pyqt5/Config.in | 1 +
  1 file changed, 1 insertion(+)
package/python-pyqt5/Config.in +0 -0
index 9fa7676f98..0b37f14317 100644

package/python-pyqt5/Config.in config BR2_PACKAGE_PYTHON_PYQT5 · line 11

Quoted 7 lines
package/python-pyqt5/Config.in +1 -0
@@ -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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#8 lore raw

Re: [Buildroot] [PATCH v3 2/2] add missing SIP module for PyQt5

Am 12.09.24 um 21:23 schrieb Andreas Naumann:

Quoted 22 lines

Am 05.04.24 um 19:54 schrieb Ralf Dragon:

Quoted 9 lines

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.

Ran into the same problem, found and applied both patches on 2024.02, compiled a qt5 config including pyqt5 for imx8mp and successfully ran it on the target.

Quoted 4 lines

---
  package/python-pyqt5/Config.in | 1 +

  1 file changed, 1 insertion(+)
Quoted 12 lines
Quoted 5 lines
package/python-pyqt5/Config.in +0 -0
index 9fa7676f98..0b37f14317 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_PYTHON_PYQT5
Quoted 7 lines

      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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#9 lore raw

Re: [Buildroot] [PATCH v3 2/2] add missing SIP module for PyQt5

In reply to Andreas Naumann

It would be great if someone could help getting the fixes merged. I don't know what is still needed and I did not find any addition info in the buildroot user manual. To me, it does not seem complicated or controversial to get this merged.

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Best,
Ralf

Am 12.09.24 um 21:23 schrieb Andreas Naumann:

Quoted 22 lines

Am 05.04.24 um 19:54 schrieb Ralf Dragon:

Quoted 9 lines

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.

Ran into the same problem, found and applied both patches on 2024.02, compiled a qt5 config including pyqt5 for imx8mp and successfully ran it on the target.

Quoted 4 lines

---
  package/python-pyqt5/Config.in | 1 +

  1 file changed, 1 insertion(+)
Quoted 12 lines
Quoted 5 lines
package/python-pyqt5/Config.in +0 -0
index 9fa7676f98..0b37f14317 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_PYTHON_PYQT5
Quoted 7 lines

      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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot