Bug 2155241
Summary: | python-jep fails to build with Python 3.12: AttributeError: 'TestNumpy' object has no attribute 'assertEquals'. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-jep | Assignee: | Orphan Owner <extras-orphan> |
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 39 | CC: | fti-bugs, mhroncok, python-packagers-sig, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-09-27 08:46:35 UTC | Type: | Bug |
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: | 2168845, 2135404 |
Description
Tomáš Hrnčiar
2022-12-20 13:50:31 UTC
Thanks for letting me know about Python 3.12 and further plannings in Fedora. There's new upstream relase. Can you reproduce noticed test failure with recent version 4.1.1? See rhbz#2003425. > Can you reproduce noticed test failure with recent version 4.1.1? I am sorry, but there are hundreds of packages failing to build with Python 3.12, we don't have the capacity to update all of them to see if it helps. If you open a PR to https://src.fedoraproject.org/rpms/python-jep we can quickly tell whether it helps or not in https://copr.fedorainfracloud.org/coprs/g/python/python3.12/builds/?dirname=python3.12:pr:<pr_number> Thanks for your report. Unfortunately, provided backtrace and retrace isn't helpful. Crash seems to happen while event processing (what happened?) somewhere down in libc memory management. (In reply to Raphael Groner from comment #3) ... please ignore, sorry. This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38. Python 3.12 is planned to be included in Fedora 39. (In reply to Ben Cotton from comment #5) > This bug appears to have been reported against 'rawhide' during the Fedora > Linux 38 development cycle. > Changing version to 38. *** Bug 2220289 has been marked as a duplicate of this bug. *** Deprecation with NumPy 1.20 filed to upstream. ERROR: testArrayParams (test_numpy.TestNumpy.testArrayParams) Tests passing an ndarray to a Java method that is expecting ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 73, in testArrayParams za = numpy.zeros((15, 5), numpy.bool) ^^^^^^^^^^ File "/usr/lib64/python3.11/site-packages/numpy/__init__.py", line 305, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations After added path for deprecation of numpy.bool there's issue with java classpath while %check starts but in rawhide only, F38 and F37 builds and tests work fine. + java -cp 'build/java/*' jep.Run src/test/python/runtests.py jep.JepException: <class 'ModuleNotFoundError'>: No module named 'java' at src/test/python/runtests.<module>(runtests.py:2) at jep.Jep.run(Native Method) at jep.Jep.runScript(Jep.java:384) at jep.Jep.runScript(Jep.java:355) at jep.Run.run(Run.java:64) at jep.Run.main(Run.java:146) (In reply to Raphael Groner from comment #8) > Deprecation with NumPy 1.20 filed to upstream. Fixed. https://github.com/ninia/jep/commit/c6981203ee1acddd9df8b25d98ea9ec340e84106 This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39. Orphaned due to lack of time. This package has been orphaned. You can pick it up at https://src.fedoraproject.org/rpms/python-jep by clicking button "Take". If nobody picks it up, it will be retired and removed from a distribution. Considering the final freeze is in a week, I decided to retire this package. If fixed, it can be reintroduced later in the Fedora 39 life cycle. Hello, Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/ All subpackages of a package against which this bug was filled are now installable or removed from Fedora 40. Thanks for taking care of it! Hello, Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/ All subpackages of a package against which this bug was filled are now installable or removed from Fedora 39. Thanks for taking care of it! |