[Buildroot] [git commit] package/python-beautifulsoup4: needs python3

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Mon Sep 27 14:34:21 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=14a0cb805d1cb8a8d1276a97ecdf3501d76d06c3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

python2 support has been removed since version 4.9.3 resulting in the
following build failure since bump to version 4.10.0 in commit
109ea1a4a2f9154c5d9502ba814a09e1e1bbd9f5:

  File "/tmp/instance-1/output-1/build/python-beautifulsoup4-4.10.0/bs4/__init__.py", line 36, in <module>
    raise ImportError('You are trying to use a Python 3-specific version of Beautiful Soup under Python 2. This will not work. The final version of Beautiful Soup to support Python 2 was 4.9.3.')

Fixes:
 - http://autobuild.buildroot.org/results/57e6677932f587c279cc0ed671895740d0cf2304

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/python-beautifulsoup4/Config.in | 1 +
 package/python-pytablereader/Config.in  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/python-beautifulsoup4/Config.in b/package/python-beautifulsoup4/Config.in
index eb7d2ba673..93fa540a73 100644
--- a/package/python-beautifulsoup4/Config.in
+++ b/package/python-beautifulsoup4/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_BEAUTIFULSOUP4
 	bool "python-beautifulsoup4"
+	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_PYTHON_SOUPSIEVE # runtime
 	help
 	  Beautiful Soup is a Python library for pulling data out of
diff --git a/package/python-pytablereader/Config.in b/package/python-pytablereader/Config.in
index e6b2a4a306..2642d3fdad 100644
--- a/package/python-pytablereader/Config.in
+++ b/package/python-pytablereader/Config.in
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_PYTHON_PYTABLEREADER
 	bool "python-pytablereader"
-	depends on BR2_PACKAGE_PYTHON3 # python-mbstrdecoder, python-pathpy
+	depends on BR2_PACKAGE_PYTHON3 # python-mbstrdecoder, python-pathpy, python-beautifulsoup4
 	select BR2_PACKAGE_PYTHON_BEAUTIFULSOUP4 # runtime
 	select BR2_PACKAGE_PYTHON_DATAPROPERTY # runtime
 	select BR2_PACKAGE_PYTHON_JSONSCHEMA # runtime


More information about the buildroot mailing list