Bug 2481420

Summary: python-transforms3d fails to build with Python 3.15: test_random_unit_vector: assert np.all(np.abs(vec_sum / n) < 0.05)
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-transforms3dAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: igor.raits, ksurma, mhroncok, neuro-sig, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2412434    

Description Karolina Surma 2026-05-26 10:12:18 UTC
python-transforms3d fails to build with Python 3.15.0b1.

___________________________ test_random_unit_vector ____________________________

    def test_random_unit_vector():
        vec_sum = np.zeros(3)
        n = 1000
        for i in range(n):
            vec = random_unit_vector()
            np.all(np.abs(vec) <= 1)
            assert np.isclose(np.sqrt(np.sum(vec @ vec)), 1)
            vec_sum += vec
>       assert np.all(np.abs(vec_sum / n) < 0.05)
E       AssertionError: assert np.False_
E        +  where np.False_ = <function all at 0x7fcd853fc330>(array([0.02232469, 0.061375  , 0.03077732]) < 0.05)
E        +    where <function all at 0x7fcd853fc330> = np.all
E        +    and   array([0.02232469, 0.061375  , 0.03077732]) = <ufunc 'absolute'>((array([ 22.32468799, -61.37499774,  30.77732152]) / 1000))
E        +      where <ufunc 'absolute'> = np.abs

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15-b1/fedora-rawhide-x86_64/10510660-python-transforms3d/

For all our attempts to build python-transforms3d with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15-b1/package/python-transforms3d/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15-b1/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.