python-asteval fails to build with Python 3.10.0a2.
=================================== FAILURES ===================================
_____________________________ TestEval.test_kaboom _____________________________
self = <test_asteval.TestEval testMethod=test_kaboom>, chk_type = 'MemoryError'
chk_msg = ''
def check_error(self, chk_type='', chk_msg=''):
> errtype, errmsg = self.interp.error.get_error()
E IndexError: list index out of range
During handling of the above exception, another exception occurred:
self = <test_asteval.TestEval testMethod=test_kaboom>
""" test Ned Batchelder's 'Eval really is dangerous' - Kaboom test (and related tests)"""
self.interp("""(lambda fc=(lambda n: [c for c in ().__class__.__bases__.__subclasses__() if c.__name__ == n]):
self.check_error('NotImplementedError', 'Lambda') # Safe, lambda is not supported
"""[print(c) for c in ().__class__.__bases__.__subclasses__()]""") # Try a portion of the kaboom...
self.check_error('AttributeError', '__class__') # Safe, unsafe dunders are not supported
self.check_error('RuntimeError') # Safe, safe_pow() catches this
"x = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((1))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))")
if version_info == (3, 9):
> self.check_error('MemoryError') # Hmmm, this is caught, but its still concerning...
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_asteval.py:132: in check_error
E AssertionError: False is not true
=========================== short test summary info ============================
FAILED tests/test_asteval.py::TestEval::test_kaboom - AssertionError: False i...
========================= 1 failed, 60 passed in 1.10s =========================
error: Bad exit status from /var/tmp/rpm-tmp.0Ap3fu (%check)
For the build logs, see:
For all our attempts to build python-asteval with Python 3.10, see:
Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
Let us know here if you have any questions.
Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla.
The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide.
You can either build the package in the side tag, with:
$ fedpkg build --target=f35-python
Or you can the build and we will eventually build it for you.
Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away.
See also https://fedoraproject.org/wiki/Changes/Python3.10
If you have general questions about the rebuild, please use this mailing list thread: https://firstname.lastname@example.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/
I took a look at this since I need this package for jrnl. The fix isn’t immediately obvious to me, but I filed a bug upstream: https://github.com/newville/asteval/issues/92
I suppose skipping the test could be an acceptable temporary workaround.
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.
*** Bug 1968895 has been marked as a duplicate of this bug. ***
Note that upstream has committed a fix and promised a release “soon”.
This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs).
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.
PR to fix by updating to the latest upstream release, thereby also resolving https://bugzilla.redhat.com/show_bug.cgi?id=1974537: https://src.fedoraproject.org/rpms/python-asteval/pull-request/1
FEDORA-2021-7ce39fb922 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-7ce39fb922
FEDORA-2021-7ce39fb922 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.