Bug 2389372

Summary: python-launchpadlib: FTBFS in Fedora Rawhide and 43
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-launchpadlibAssignee: Ondřej Pohořelský <opohorel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, opohorel, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/python-launchpadlib
Whiteboard:
Fixed In Version: python-httplib2-0.22.0-7.fc43 python-launchpadlib-2.1.0-6.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-29 00:31:06 UTC 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: 2389375    
Bug Blocks: 2339432, 2360110, 2384424, 2373702    

Description Miro Hrončok 2025-08-19 10:44:46 UTC
Description of problem:
Package python-launchpadlib fails to build from source in Fedora Rawhide and Fedora 43.

Version-Release number of selected component (if applicable):
2.1.0-4.fc43

Steps to Reproduce:
fedpkg build

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

ERROR: test_unknown_token (src.launchpadlib.tests.test_http.TestTokenFailureDuringRequest.test_unknown_token)
If our token is unknown, we get another one.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-launchpadlib-2.1.0-build/launchpadlib-2.1.0/src/launchpadlib/tests/test_http.py", line 224, in test_unknown_token
    SimulatedResponsesLaunchpad.login_with(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        "application name", authorization_engine=self.engine
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/builddir/build/BUILD/python-launchpadlib-2.1.0-build/BUILDROOT/usr/lib/python3.14/site-packages/launchpadlib/launchpad.py", line 693, in login_with
    return cls._authorize_token_and_login(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        authorization_engine.consumer,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<8 lines>...
        version,
        ^^^^^^^^
    )
    ^
  File "/builddir/build/BUILD/python-launchpadlib-2.1.0-build/BUILDROOT/usr/lib/python3.14/site-packages/launchpadlib/launchpad.py", line 457, in _authorize_token_and_login
    return cls(
        credentials,
    ...<6 lines>...
        version,
    )
  File "/builddir/build/BUILD/python-launchpadlib-2.1.0-build/BUILDROOT/usr/lib/python3.14/site-packages/launchpadlib/launchpad.py", line 223, in __init__
    super().__init__(
    ~~~~~~~~~~~~~~~~^
        credentials, service_root, cache, timeout, proxy_info, version
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.14/site-packages/lazr/restfulclient/resource.py", line 511, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/lazr/restfulclient/_browser.py", line 502, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
                        ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/lazr/restfulclient/_browser.py", line 441, in _request
    response, content = self._request_and_retry(
                        ~~~~~~~~~~~~~~~~~~~~~~~^
        str(url), method=method, body=data, headers=headers
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.14/site-packages/lazr/restfulclient/_browser.py", line 400, in _request_and_retry
    response, content = self._connection.request(
                        ~~~~~~~~~~~~~~~~~~~~~~~~^
        url, method=method, body=body, headers=headers
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.14/site-packages/httplib2/__init__.py", line 1581, in request
    conn = self.connections[conn_key] = connection_type(
                                        ~~~~~~~~~~~~~~~^
        authority,
        ^^^^^^^^^^
    ...<5 lines>...
        tls_minimum_version=self.tls_minimum_version,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.14/site-packages/httplib2/__init__.py", line 1100, in __init__
    context = _build_ssl_context(
        self.disable_ssl_certificate_validation,
    ...<5 lines>...
        key_password=key_password,
    )
  File "/usr/lib/python3.14/site-packages/httplib2/__init__.py", line 183, in _build_ssl_context
    context.load_verify_locations(ca_certs)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
----------------------------------------------------------------------

Comment 1 Miro Hrončok 2025-08-19 10:45:52 UTC
This looks like it is related to https://fedoraproject.org/wiki/Changes/dropingOfCertPemFile

Comment 2 Miro Hrončok 2025-08-19 10:50:03 UTC
/usr/lib/python3.14/site-packages/httplib2/certs.py has:

FEDORA_CA_CERTS = "/etc/pki/tls/certs/ca-bundle.crt"

This is from https://src.fedoraproject.org/rpms/python-httplib2/blob/rawhide/f/python-httplib2.certfile.patch

Comment 3 Miro Hrončok 2025-08-26 11:08:43 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc2+ bytecode in Fedora 43.

The Beta Freeze of Fedora 43 is scheduled to start today. Please prioritize this bugzilla accordingly.

Thanks.

Comment 4 Ondřej Pohořelský 2025-08-27 09:18:59 UTC
I'll rebuild python-launchpadlib right when I'm unblocked by python-httplib2 Bug 2389375

Comment 5 Fedora Update System 2025-09-26 07:56:07 UTC
FEDORA-2025-461d15d5a4 (python-launchpadlib-2.1.0-6.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-461d15d5a4

Comment 6 Fedora Update System 2025-09-29 00:31:06 UTC
FEDORA-2025-461d15d5a4 (python-launchpadlib-2.1.0-6.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.