Bug 2246280

Summary: python-migen fails to build with Python 3.13: ValueError: Cannot extract clock domain name from code, need to specify.
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-migenAssignee: Gabriel Somlo <somlo>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, somlo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-migen-0.9.2-22.20231218git50934ad.fc38 python-migen-0.9.2-22.20231218git50934ad.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-28 00:53:44 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:    
Bug Blocks: 2244836    

Description Karolina Surma 2023-10-26 07:22:01 UTC
python-migen fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

test_local_cd (migen.test.test_examples.TestExamplesBasic.test_local_cd) ... Traceback (most recent call last):
  File "/builddir/build/BUILD/migen-ccaee68e14d3636e1d8fb2e0864dd89b1b1f7384/examples/basic/local_cd.py", line 18, in <module>
    mm = MultiMod()
         ^^^^^^^^^^
  File "/builddir/build/BUILD/migen-ccaee68e14d3636e1d8fb2e0864dd89b1b1f7384/examples/basic/local_cd.py", line 14, in __init__
    self.submodules.foo = CDM()
                          ^^^^^
  File "/builddir/build/BUILD/migen-ccaee68e14d3636e1d8fb2e0864dd89b1b1f7384/examples/basic/local_cd.py", line 9, in __init__
    self.clock_domains.cd_sys = ClockDomain(reset_less=True)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/migen-ccaee68e14d3636e1d8fb2e0864dd89b1b1f7384/migen/fhdl/structure.py", line 710, in __init__
    raise ValueError("Cannot extract clock domain name from code, need to specify.")
ValueError: Cannot extract clock domain name from code, need to specify.

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06557897-python-migen/

For all our attempts to build python-migen with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-migen/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Fedora Update System 2023-12-19 18:57:05 UTC
FEDORA-2023-59032708ea has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-59032708ea

Comment 2 Fedora Update System 2023-12-19 18:58:11 UTC
FEDORA-2023-69f865e2b6 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-69f865e2b6

Comment 3 Fedora Update System 2023-12-20 01:08:45 UTC
FEDORA-2023-69f865e2b6 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-69f865e2b6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-69f865e2b6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2023-12-20 01:29:02 UTC
FEDORA-2023-59032708ea has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-59032708ea`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-59032708ea

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-12-28 00:53:44 UTC
FEDORA-2023-69f865e2b6 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-12-28 01:23:15 UTC
FEDORA-2023-59032708ea has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.