python-sklearn-genetic failed to build from source in Fedora rawhide/f39 https://koji.fedoraproject.org/koji/taskinfo?taskID=103694568 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Please fix python-sklearn-genetic at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, python-sklearn-genetic will be orphaned. Before branching of Fedora 40, python-sklearn-genetic will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
Created attachment 1979377 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 1979378 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1979379 [details] state.log
==================================== ERRORS ==================================== __________ ERROR collecting genetic_selection/tests/test_selection.py __________ ImportError while importing test module '/builddir/build/BUILD/sklearn-genetic-0.5.1/genetic_selection/tests/test_selection.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.12/importlib/__init__.py:90: in import_module return _bootstrap._gcd_import(name[level:], package, level) genetic_selection/__init__.py:16: in <module> from .gscv import GeneticSelectionCV genetic_selection/gscv.py:22: in <module> from sklearn.utils.metaestimators import if_delegate_has_method E ImportError: cannot import name 'if_delegate_has_method' from 'sklearn.utils.metaestimators' (/usr/lib64/python3.12/site-packages/sklearn/utils/metaestimators.py) =========================== short test summary info ============================ ERROR genetic_selection/tests/test_selection.py !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! =============================== 1 error in 0.37s =============================== https://github.com/manuel-calzolari/sklearn-genetic/issues/37
Upstream is planning to fix this next week[1], and a candidate PR might be available sooner[2]. We will also need to replace np.bool with Python bool[3][4] for numpy 1.20 and later. I went ahead and opened a PR for that[5], since that should fix the FTBFS in F37/F38. [1] https://github.com/manuel-calzolari/sklearn-genetic/issues/37#issuecomment-1674849553 [2] https://github.com/manuel-calzolari/sklearn-genetic/issues/37#issuecomment-1674854906 [3] https://github.com/manuel-calzolari/sklearn-genetic/issues/39 [4] https://github.com/manuel-calzolari/sklearn-genetic/pull/40 [5] https://src.fedoraproject.org/rpms/python-sklearn-genetic/pull-request/1
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39.