Bug 2328006 - did fails to build with Python 3.14: AttributeError: module 'urllib.request' has no attribute 'FancyURLopener'
Summary: did fails to build with Python 3.14: AttributeError: module 'urllib.request' ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: did
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro Bonazzola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2327977
Blocks: PYTHON3.14 F43FTBFS F43FailsToInstall 2371703
TreeView+ depends on / blocked
 
Reported: 2024-11-22 10:59 UTC by Karolina Surma
Modified: 2025-07-04 13:04 UTC (History)
7 users (show)

Fixed In Version: did-0.22-2.fc43
Clone Of:
Environment:
Last Closed: 2025-07-04 13:04:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github psss did issues 385 0 None open did fails to build with Python 3.14: AttributeError: module 'urllib.request' has no attribute 'FancyURLopener' 2025-02-04 16:00:01 UTC

Description Karolina Surma 2024-11-22 10:59:52 UTC
did fails to build with Python 3.14.0a2.

______________________________ test_help_example _______________________________

    def test_help_example():
        """ Help message with example config """
        did.base.Config(config=EXAMPLE)
        with pytest.raises(SystemExit):
>           did.cli.main(["--help"])

tests/test_cli.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
did/cli.py:210: in main
    options, header = Options(arguments).parse()
did/cli.py:72: in __init__
    self.sample_stats = UserStats()
did/stats.py:188: in __init__
    self.stats = self.configured_plugins(config)
did/stats.py:227: in configured_plugins
    obj = statsgroup(option=section, parent=self, user=user)
did/plugins/gerrit.py:419: in __init__
    AbandonedChanges(option=option + '-abandoned', parent=self),
did/plugins/gerrit.py:132: in __init__
    self.repo = Gerrit(baseurl=self.base_url, prefix=self.prefix)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <did.plugins.gerrit.Gerrit object at 0x7fb0596d2660>
baseurl = 'https://example.org/gerrit/', prefix = 'GR'

    def __init__(self, baseurl, prefix):
>       self.opener = urllib.request.FancyURLopener()
E       AttributeError: module 'urllib.request' has no attribute 'FancyURLopener'

did/plugins/gerrit.py:67: AttributeError
__________________________________ test_debug __________________________________

    def test_debug():
        """ Check the debug mode """
        did.base.Config(config=EXAMPLE)
        with pytest.raises(SystemExit):
>           did.cli.main("--help --debug")

tests/test_cli.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
did/cli.py:210: in main
    options, header = Options(arguments).parse()
did/cli.py:72: in __init__
    self.sample_stats = UserStats()
did/stats.py:188: in __init__
    self.stats = self.configured_plugins(config)
did/stats.py:227: in configured_plugins
    obj = statsgroup(option=section, parent=self, user=user)
did/plugins/gerrit.py:419: in __init__
    AbandonedChanges(option=option + '-abandoned', parent=self),
did/plugins/gerrit.py:132: in __init__
    self.repo = Gerrit(baseurl=self.base_url, prefix=self.prefix)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <did.plugins.gerrit.Gerrit object at 0x7fb0596cfc50>
baseurl = 'https://example.org/gerrit/', prefix = 'GR'

    def __init__(self, baseurl, prefix):
>       self.opener = urllib.request.FancyURLopener()
E       AttributeError: module 'urllib.request' has no attribute 'FancyURLopener'


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/fedora-rawhide-x86_64/08290583-did/

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

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/

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 Aoife Moloney 2025-02-26 13:17:48 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Michal Schmidt 2025-04-28 09:14:10 UTC
This is fixed in Sandro Bonazzola's fork of did: https://github.com/sandrobonazzola/did/commit/7d6380b49ea86e35c9335250197c774003d41e2b
I would like to see "did" in Fedora switch to his fork:
https://src.fedoraproject.org/rpms/did/pull-request/16

Comment 3 Sandro Bonazzola 2025-05-28 12:12:48 UTC
(In reply to Michal Schmidt from comment #2)
> This is fixed in Sandro Bonazzola's fork of did:
> https://github.com/sandrobonazzola/did/commit/
> 7d6380b49ea86e35c9335250197c774003d41e2b
> I would like to see "did" in Fedora switch to his fork:
> https://src.fedoraproject.org/rpms/did/pull-request/16

Upstream did merged my fork, expecting a release including the fixes soon.

Comment 4 Karolina Surma 2025-06-11 15:53:23 UTC
*** Bug 2371703 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Fails To Install 2025-06-20 19:50:29 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/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 6 Sandro Bonazzola 2025-07-04 12:59:21 UTC
FEDORA-2025-06f59a5056  (did-0.22-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-06f59a5056

Comment 7 Sandro Bonazzola 2025-07-04 13:04:44 UTC
FEDORA-2025-06f59a5056 (did-0.22-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


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