Bug 2220174 - F39FailsToInstall: python3-cro
Summary: F39FailsToInstall: python3-cro
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cro
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.12 F39FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2023-07-05 19:10 UTC by Fedora Fails To Install
Modified: 2023-07-14 18:39 UTC (History)
4 users (show)

Fixed In Version: python-cro-0.0.5.2-1.fc39
Clone Of:
Environment:
Last Closed: 2023-07-14 18:39:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fedora Fails To Install 2023-07-05 19:10:03 UTC
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/

Your package (python-cro) Fails To Install in Fedora 39:

can't install python3-cro:
  - nothing provides python3.11dist(numpy) >= 1.13.1 needed by python3-cro-0.0.5.0-5.fc38.noarch
  - nothing provides python3.11dist(pandas) >= 0.20.3 needed by python3-cro-0.0.5.0-5.fc38.noarch
  - nothing provides python3.11dist(scikit-learn) >= 0.18 needed by python3-cro-0.0.5.0-5.fc38.noarch
  - nothing provides python3.11dist(matplotlib) needed by python3-cro-0.0.5.0-5.fc38.noarch
  - nothing provides python(abi) = 3.11 needed by python3-cro-0.0.5.0-5.fc38.noarch
  - nothing provides python3.11dist(scipy) >= 0.19 needed by python3-cro-0.0.5.0-5.fc38.noarch
  
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.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-39-x86_64 --config-opts mirrored=False install python3-cro


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Sandro 2023-07-13 10:37:29 UTC
Tests fail:

Example I: feature selection Classification (max auc):  15.074397802352905 seconds.
['Q25' 'IQR' 'skew' 'centroid' 'meanfun' 'maxfun' 'mindom']
Traceback (most recent call last):
  File "/builddir/build/BUILD/cro-0.0.5.0/examples/example_advanced.py", line 84, in <module>
    dataset = datasets.load_boston()
              ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sklearn/datasets/__init__.py", line 157, in __getattr__
    raise ImportError(msg)
ImportError: 
`load_boston` has been removed from scikit-learn since version 1.2.

The Boston housing prices dataset has an ethical problem: as
investigated in [1], the authors of this dataset engineered a
non-invertible variable "B" assuming that racial self-segregation had a
positive impact on house prices [2]. Furthermore the goal of the
research that led to the creation of this dataset was to study the
impact of air quality but it did not give adequate demonstration of the
validity of this assumption.

The scikit-learn maintainers therefore strongly discourage the use of
this dataset unless the purpose of the code is to study and educate
about ethical issues in data science and machine learning.

In this special case, you can fetch the dataset from the original
source::

    import pandas as pd
    import numpy as np

    data_url = "http://lib.stat.cmu.edu/datasets/boston"
    raw_df = pd.read_csv(data_url, sep="\s+", skiprows=22, header=None)
    data = np.hstack([raw_df.values[::2, :], raw_df.values[1::2, :2]])
    target = raw_df.values[1::2, 2]

Alternative datasets include the California housing dataset and the
Ames housing dataset. You can load the datasets as follows::

    from sklearn.datasets import fetch_california_housing
    housing = fetch_california_housing()

for the California housing dataset and::

    from sklearn.datasets import fetch_openml
    housing = fetch_openml(name="house_prices", as_frame=True)

for the Ames housing dataset.

[1] M Carlisle.
"Racist data destruction?"
<https://medium.com/@docintangible/racist-data-destruction-113e3eff54a8>

[2] Harrison Jr, David, and Daniel L. Rubinfeld.
"Hedonic housing prices and the demand for clean air."
Journal of environmental economics and management 5.1 (1978): 81-102.
<https://www.researchgate.net/publication/4974606_Hedonic_housing_prices_and_the_demand_for_clean_air>

error: Bad exit status from /var/tmp/rpm-tmp.ndxM0i (%check)
    Bad exit status from /var/tmp/rpm-tmp.ndxM0i (%check)

Comment 2 Sandro 2023-07-14 13:42:52 UTC
Upstream has removed the failing test and released an update: https://github.com/VictorPelaez/coral-reef-optimization-algorithm/issues/64

I canceled the Koji build. Will update the package to latest release and drop the patch.

Comment 3 Ben Beasley 2023-07-14 15:02:59 UTC
Fixed by: https://src.fedoraproject.org/rpms/python-cro/pull-request/2

Comment 4 Fedora Update System 2023-07-14 18:35:54 UTC
FEDORA-2023-088865b383 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-088865b383

Comment 5 Fedora Update System 2023-07-14 18:39:55 UTC
FEDORA-2023-088865b383 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.