Bug 2280551

Summary: eralchemy fails to build with Python 3.13: AssertionError: assert ('version' in locals())
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: eralchemyAssignee: Pavel Raiskup <praiskup>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: eralchemy-1.2.10-20.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-27 10:56:20 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 2024-05-15 06:38:52 UTC
eralchemy fails to build with Python 3.13.0b1.

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP'
Traceback (most recent call last):
  File "/builddir/build/BUILD/ERAlchemy-1.2.10/setup.py", line 22, in <module>
    version=read_version(),
            ~~~~~~~~~~~~^^
  File "/builddir/build/BUILD/ERAlchemy-1.2.10/setup.py", line 15, in read_version
    assert ('version' in locals())
            ^^^^^^^^^^^^^^^^^^^^^
AssertionError

This behavior was reported to CPython: https://github.com/python/cpython/issues/118888 and assessed as expected due to PEP 667.


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/07443416-eralchemy/

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

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 2 Fedora Update System 2024-05-27 10:53:12 UTC
FEDORA-2024-7a369e3b65 (eralchemy-1.2.10-20.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7a369e3b65

Comment 3 Fedora Update System 2024-05-27 10:56:20 UTC
FEDORA-2024-7a369e3b65 (eralchemy-1.2.10-20.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.