Bug 2210605

Summary: python-geoplot: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: python-geoplotAssignee: Elliott Sales de Andrade <quantum.analyst>
Status: POST --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: python-packagers-sig, quantum.analyst
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/python-geoplot
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2023-05-28 23:38:55 UTC
Description of problem:
Package python-geoplot fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.5.1-5.fc39

Steps to Reproduce:
koji build --scratch f39 python-geoplot-0.5.1-5.fc39.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-geoplot

Reproducible: Always




____________________ ERROR collecting tests/mixin_tests.py _____________________
ImportError while importing test module '/builddir/build/BUILD/geoplot-0.5.1/tests/mixin_tests.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/mixin_tests.py:9: in <module>
    from matplotlib.axes._subplots import SubplotBase
E   ModuleNotFoundError: No module named 'matplotlib.axes._subplots'
=============================== warnings summary ===============================
../../../../usr/lib64/python3.11/site-packages/sklearn/cluster/_kmeans.py:870
../../../../usr/lib64/python3.11/site-packages/sklearn/cluster/_kmeans.py:870
  /usr/lib64/python3.11/site-packages/sklearn/cluster/_kmeans.py:870: FutureWarning: The default value of `n_init` will change from 10 to 'auto' in 1.4. Set the value of `n_init` explicitly to suppress the warning
    warnings.warn(

../../BUILDROOT/python-geoplot-0.5.1-5.fc39.x86_64/usr/lib/python3.11/site-packages/geoplot/utils.py:74
  /builddir/build/BUILDROOT/python-geoplot-0.5.1-5.fc39.x86_64/usr/lib/python3.11/site-packages/geoplot/utils.py:74: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
    polys = [poly for _, poly in gaussian_polygons(points).iteritems()]

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Likely triggered by the change from matplotlib 3.6.3 to 3.7.0

Comment 1 Elliott Sales de Andrade 2023-07-27 10:07:18 UTC
A patch was applied for this, but was not built earlier before other things broke the build.

https://src.fedoraproject.org/rpms/python-geoplot/c/2a84a18935b09688e56c5952da6e76473504fd9e?branch=rawhide

Comment 2 Fedora Release Engineering 2023-08-16 08:09:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.