Bug 2365819 - lasso fails to build with Python 3.14: FAIL: binding_tests.py
Summary: lasso fails to build with Python 3.14: FAIL: binding_tests.py
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: lasso
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Xavier Bachelot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-05-13 08:40 UTC by Karolina Surma
Modified: 2025-05-14 14:54 UTC (History)
4 users (show)

Fixed In Version: lasso-2.8.2-17.fc43
Clone Of:
Environment:
Last Closed: 2025-05-14 14:54:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-05-13 08:40:20 UTC
lasso fails to build with Python 3.14.0b1.

Unfortunately, build log of lasso doesn't show meaningful traceback.

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

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

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

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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.

Comment 1 Xavier Bachelot 2025-05-13 14:59:21 UTC
I'd like to try and replicate this but ss there a convenient way to build against python 3.14 beta 1 ? Maybe a side tag ?

Comment 2 Xavier Bachelot 2025-05-13 15:11:58 UTC
Sorry for the noise, I failed to read properly ;-(
There are no instructions at https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/ but there are at https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ so I was able to sort this out.
Now let's see if I can help with a fix.

Comment 3 Xavier Bachelot 2025-05-13 15:23:49 UTC
From /build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/test-suite.log:

```
FAIL: test07 (__main__.BindingTestCase.test07)
Check reference counting
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/./binding_tests.py", line 260, in test07
    self.assertEqual(b, a-1)
    ~~~~~~~~~~~~~~~~^^^^^^^^
AssertionError: 1 != 2
```

Comment 4 Xavier Bachelot 2025-05-13 15:34:32 UTC
The path for the test suite log above is wrong, it should read /buildir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/test-suite.log

The failing test from /builddir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/binding_tests.py is 
```
   def test07(self):
        '''Check reference counting'''
        s = lasso.Samlp2AuthnRequest()
        cptr = s._cptr
        a = sys.getrefcount(s._cptr)
        del(s)
        b = sys.getrefcount(cptr)
        self.assertEqual(b, a-1)
```

Comment 5 Xavier Bachelot 2025-05-13 17:12:47 UTC
upstream issue: https://dev.entrouvert.org/issues/105622

Comment 6 Fedora Update System 2025-05-14 13:54:45 UTC
FEDORA-2025-1bc39c03d8 (lasso-2.8.2-17.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-1bc39c03d8

Comment 8 Fedora Update System 2025-05-14 13:59:09 UTC
FEDORA-2025-1bc39c03d8 (lasso-2.8.2-17.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Xavier Bachelot 2025-05-14 14:01:47 UTC
Bodhi automatically closed this bug, although the rawhide build is not using python 3.14, so re-opening in order to be able to close once the python 3.14 build has actually happened.

Comment 10 Karolina Surma 2025-05-14 14:03:30 UTC
(In reply to Xavier Bachelot from comment #2)
> Sorry for the noise, I failed to read properly ;-(
> There are no instructions at
> https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/ but there
> are at https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ so I was
> able to sort this out.

Apologies for that and thank you for pointing this out - I added the instructions and updated template.

Comment 11 Karolina Surma 2025-05-14 14:05:48 UTC
Feel free to close the bug though: lasso has built successfully in Python 3.14 copr (https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/build/9038285/) so I expect a success later in Koji (the rebuild is planned for the week around ~Jun 2nd).

Comment 12 Xavier Bachelot 2025-05-14 14:54:13 UTC
Thanks for the update Karolina !


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