Bug 1716529
| Summary: | python-simpleeval fails to build with Python 3.8 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-simpleeval | Assignee: | Dan Horák <dan> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-simpleeval/ | ||
| Whiteboard: | |||
| Fixed In Version: | python-simpleeval-0.9.8-1.fc32 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-17 09:59:28 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1750908, 1750909, 1686977 | ||
|
Description
Miro Hrončok
2019-06-03 14:40:35 UTC
======================================================================
ERROR: test_bools_and_or (test_simpleeval.TestBasic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 289, in _eval
handler = self.nodes[type(node)]
KeyError: <class '_ast.Constant'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 48, in test_bools_and_or
self.t('True and False', False)
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 30, in t
return self.assertEqual(self.s.eval(expr), shouldbe)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 283, in eval
return self._eval(ast.parse(expr.strip()).body[0].value)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 294, in _eval
return handler(node)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 323, in _eval_boolop
vout = self._eval(value)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 291, in _eval
raise FeatureNotAvailable("Sorry, {0} is not available in this "
simpleeval.FeatureNotAvailable: Sorry, Constant is not available in this evaluator
======================================================================
ERROR: test_comparisons (test_simpleeval.TestBasic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 289, in _eval
handler = self.nodes[type(node)]
KeyError: <class '_ast.Constant'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 74, in test_comparisons
self.t("1 > 0", True)
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 30, in t
return self.assertEqual(self.s.eval(expr), shouldbe)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 283, in eval
return self._eval(ast.parse(expr.strip()).body[0].value)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 294, in _eval
return handler(node)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 335, in _eval_compare
left = self._eval(node.left)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 291, in _eval
raise FeatureNotAvailable("Sorry, {0} is not available in this "
simpleeval.FeatureNotAvailable: Sorry, Constant is not available in this evaluator
======================================================================
ERROR: test_default_conversions (test_simpleeval.TestBasic)
conversion between types
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 289, in _eval
handler = self.nodes[type(node)]
KeyError: <class '_ast.Constant'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 113, in test_default_conversions
self.t('int("20") + int(0.22*100)', 42)
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 30, in t
return self.assertEqual(self.s.eval(expr), shouldbe)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 283, in eval
return self._eval(ast.parse(expr.strip()).body[0].value)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 294, in _eval
return handler(node)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 316, in _eval_binop
return self.operators[type(node.op)](self._eval(node.left),
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 294, in _eval
return handler(node)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 357, in _eval_call
return func(
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 358, in <genexpr>
*(self._eval(a) for a in node.args),
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 291, in _eval
raise FeatureNotAvailable("Sorry, {0} is not available in this "
simpleeval.FeatureNotAvailable: Sorry, Constant is not available in this evaluator
======================================================================
ERROR: test_if_else (test_simpleeval.TestBasic)
x if y else z
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 289, in _eval
handler = self.nodes[type(node)]
KeyError: <class '_ast.Constant'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 104, in test_if_else
self.t("'a' if 1 == 1 else 'b'", 'a')
File "/builddir/build/BUILD/simpleeval-0.9.6/test_simpleeval.py", line 30, in t
return self.assertEqual(self.s.eval(expr), shouldbe)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 283, in eval
return self._eval(ast.parse(expr.strip()).body[0].value)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 294, in _eval
return handler(node)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 345, in _eval_ifexp
return self._eval(node.body) if self._eval(node.test) \
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 294, in _eval
return handler(node)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 335, in _eval_compare
left = self._eval(node.left)
File "/builddir/build/BUILD/simpleeval-0.9.6/build/lib/simpleeval.py", line 291, in _eval
raise FeatureNotAvailable("Sorry, {0} is not available in this "
simpleeval.FeatureNotAvailable: Sorry, Constant is not available in this evaluator
...
----------------------------------------------------------------------
Ran 54 tests in 0.041s
FAILED (errors=43)
This is caused by https://github.com/python/cpython/pull/9445
Dan, any chance you could reply? Yup, it's on my to-do list. Is there a repo with ppc64le rpms for the python 3.8 rebase? Nope, sorry, only x86_64. Will strat rebuilds in Koji next week, will have all the arches. This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to 31. Python 3.8 will happen in Fedora 32, changing back to rawhide. The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.
If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:
on branch master:
$ fedpkg build --target=f32-python
To wait for a build to show up in the side tag, do:
$ koji wait-repo f32-python --build=<nvr>
Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.
An updated mock config is posted at:
http://copr.fedorainfracloud.org/coprs/g/python/python3.8/
Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.
Thanks. Let us know if you need up to date info, or if you have any questions.
PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:
on branch f31:
$ fedpkg build
The f32-python side tag has been merged. In order to rebuild the package, do it in regular rawhide, but please wait until python3-3.8 is tagged: $ koji wait-repo f32-build --build python3-3.8.0~b3-3.fc32 If your built already started in f32-python, after it is finished, please tag it to rawhide with: $ koji tag-build f32-pending <nvr> For example: $ koji tag-build f32-pending libreoffice-6.3.0.4-3.fc32 Thanks! (This comment is mass posted to all bugzillas blocking the PYTHON38 tracking bug.) (Python 3.8 has landed in the rawhide buildroot.) This issue is blocking the Python 3.8 rebuilds. If this package won't build with 3.8, it won't be installable, along with all its dependent packages, in Fedora 32. Furthermore, as it fails to install, its dependent packages will fail to install and/or build as well. Could you please look into this? This is now possible to debug on ppc64le as well. Upstream PR with py3.8 support - https://github.com/danthedeckie/simpleeval/pull/64, I think I'll merge it in the rawhide rpm until there is a new upstream release. |