summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2022-08-17 20:13:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-23 15:48:55 +0100
commitfc4b126856e50bceb56f1d8c828421dcd82a2105 (patch)
treebe34c0621f1915636b9dbbb1b30e52189bcedf9c
parent9df4838fe91e437ae990b3ef7de37eead326dd6b (diff)
downloadpoky-fc4b126856e50bceb56f1d8c828421dcd82a2105.tar.gz
python3-hypothesis: revert back to 6.46.11
This package was broken since it was upgraded to 6.48, because it started using 'exceptiongroup' since then, which is missing in any meta layer. On target, when importing hypothesis, we meet the following error: Traceback (most recent call last): File "/usr/lib64/python3.10/site-packages/hypothesis/internal/compat.py", line 18, in <module> BaseExceptionGroup = BaseExceptionGroup NameError: name 'BaseExceptionGroup' is not defined. Did you mean: 'BaseException'? ModuleNotFoundError: No module named 'exceptiongroup' The related codes as below: try: BaseExceptionGroup = BaseExceptionGroup ExceptionGroup = ExceptionGroup # pragma: no cover except NameError: from exceptiongroup import ( BaseExceptionGroup as BaseExceptionGroup, ExceptionGroup as ExceptionGroup, ) We can see that it tries to use ExceptionGroup and falls back to use an import from exceptiongroup module. Looking at the https://github.com/agronholm/exceptiongroup, it says: """ This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11. """ So instead of adding a new recipe for exception group, it might be better to revert to a working version and wait for python 3.11 to release. (From OE-Core rev: 37c5b171d7de25b131e77b80d37f8481308bd6fe) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb (renamed from meta/recipes-devtools/python/python3-hypothesis_6.54.1.bb)2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.54.1.bb b/meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
index afcd5e64ef..1d9772d4ff 100644
--- a/meta/recipes-devtools/python/python3-hypothesis_6.54.1.bb
+++ b/meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
@@ -13,7 +13,7 @@ SRC_URI += " \
13 file://test_rle.py \ 13 file://test_rle.py \
14 " 14 "
15 15
16SRC_URI[sha256sum] = "de63c34309181875e71d0f5d1c1051c9320a1fe0517ea6733af8cedf818191f4" 16SRC_URI[sha256sum] = "f5c1cf61b24b094355577a6b8fbbb8eb54c1b0216fbc0519af97c46bddf43c42"
17 17
18RDEPENDS:${PN} += " \ 18RDEPENDS:${PN} += " \
19 python3-attrs \ 19 python3-attrs \