Bug 2220117

Summary: F39FailsToInstall: python3-astropy-healpix
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: python-astropy-healpixAssignee: Christian Dersch <lupinix.fedora>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: astro-sig, lupinix.fedora, mtasaka, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-astropy-healpix-0.7-4.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-13 11:32:41 UTC Type: ---
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: 2135404, 2168845, 2219920, 2220145, 2220480    

Description Fedora Fails To Install 2023-07-05 19:08:09 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-astropy-healpix) Fails To Install in Fedora 39:

can't install python3-astropy-healpix:
  - nothing provides python3.11dist(numpy) needed by python3-astropy-healpix-0.7-1.fc38.x86_64
  - nothing provides python(abi) = 3.11 needed by python3-astropy-healpix-0.7-1.fc38.x86_64
  - nothing provides python3.11dist(astropy) >= 3 needed by python3-astropy-healpix-0.7-1.fc38.x86_64
  
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-astropy-healpix


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 Tomáš Hrnčiar 2023-07-11 13:43:57 UTC
=================================== FAILURES ===================================
_________________________________ test_vec2pix _________________________________
    @given(nside_pow=integers(0, 29), nest=booleans(),
>          x=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda x: abs(x) > 1e-10),
           y=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda y: abs(y) > 1e-10),
           z=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda z: abs(z) > 1e-10))
astropy_healpix/tests/test_healpy.py:116: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
nside_pow = 2, x = 1.0, y = 1.0, z = 0.5, nest = False
    @given(nside_pow=integers(0, 29), nest=booleans(),
           x=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda x: abs(x) > 1e-10),
           y=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda y: abs(y) > 1e-10),
           z=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda z: abs(z) > 1e-10))
    @settings(max_examples=2000, derandomize=True)
    def test_vec2pix(nside_pow, x, y, z, nest):
        nside = 2 ** nside_pow
        ipix1 = hp_compat.vec2pix(nside, x, y, z, nest=nest)
        ipix2 = hp.vec2pix(nside, x, y, z, nest=nest)
>       assert ipix1 == ipix2
E       assert 42 == 58
E       Falsifying example: test_vec2pix(
E           nside_pow=2,
E           nest=False,
E           x=1.0,
E           y=1.0,
E           z=0.5,
E       )
astropy_healpix/tests/test_healpy.py:124: AssertionError
_________________________________ test_vec2ang _________________________________
    @given(vectors=arrays(float, (3,), elements=floats(-1, 1)).filter(not_at_origin),
>          lonlat=booleans(), ndim=integers(0, 4))
astropy_healpix/tests/test_healpy.py:210: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
astropy_healpix/tests/test_healpy.py:219: in test_vec2ang
    assert_allclose(phi1, phi2, atol=1e-10)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
args = (<function assert_allclose.<locals>.compare at 0xffff7984e5c0>, array([ 0.]), array([ 3.14159265]))
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=1e-10', 'verbose': True}
    @wraps(func)
    def inner(*args, **kwds):
        with self._recreate_cm():
>           return func(*args, **kwds)
E           AssertionError: 
E           Not equal to tolerance rtol=1e-07, atol=1e-10
E           
E           Mismatched elements: 1 / 1 (100%)
E           Max absolute difference: 3.141592653589793
E           Max relative difference: 1.0
E            x: array([ 0.])
E            y: array([ 3.141593])
E           Falsifying example: test_vec2ang(
E               vectors=array([-0., -0.,  1.]),
E               lonlat=False,
E               ndim=0,
E           )
/usr/lib64/python3.12/contextlib.py:81: AssertionError
=============================== warnings summary ===============================
astropy_healpix/tests/test_core.py::test_interpolate_bilinear_invalid
  /builddir/build/BUILDROOT/python-astropy-healpix-0.7-3.fc39.aarch64/usr/lib64/python3.12/site-packages/astropy_healpix/core.py:586: RuntimeWarning: invalid value encountered in bilinear_interpolation_weights
    result = _core.bilinear_interpolation_weights(lon, lat, nside)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED astropy_healpix/tests/test_healpy.py::test_vec2pix - assert 42 == 58
FAILED astropy_healpix/tests/test_healpy.py::test_vec2ang - AssertionError: 
================== 2 failed, 127 passed, 1 warning in 25.06s ===================

Comment 2 Mamoru TASAKA 2023-07-12 08:24:02 UTC
https://github.com/astropy/astropy-healpix/issues/183
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026012

I am going to disable the tests mentioned above.

Comment 3 Fedora Fails To Install 2023-07-13 11:32:41 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/

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!