Bug 2279983 - python-murano-pkg-check fails to build with Python 3.13: AttributeError: 'FrameLocalsProxy' object has no attribute 'copy'
Summary: python-murano-pkg-check fails to build with Python 3.13: AttributeError: 'Fra...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: python-murano-pkg-check
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Javier Peña
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-05-10 11:47 UTC by Karolina Surma
Modified: 2024-09-27 12:44 UTC (History)
5 users (show)

Fixed In Version: python-murano-pkg-check-0.3.0-34.fc41
Clone Of:
Environment:
Last Closed: 2024-09-27 12:44:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-05-10 11:47:07 UTC
python-murano-pkg-check fails to build with Python 3.13.0b1.

${PYTHON:-python} -m subunit.run discover -t ./ .  --load-list /tmp/tmp7ii8mv0i
======================================================================
FAIL: muranopkgcheck.tests.test_manager.ManagerTest.test_validate
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/murano-pkg-check-0.3.0/muranopkgcheck/manager.py", line 73, in _to_list
    e = next(error_chain)
  File "/builddir/build/BUILD/murano-pkg-check-0.3.0/muranopkgcheck/tests/test_manager.py", line 73, in broken_checker
    if 1 / a:
       ~~^~~
ZeroDivisionError: division by zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.13/unittest/mock.py", line 1420, in patched
    return func(*newargs, **newkeywargs)
  File "/builddir/build/BUILD/murano-pkg-check-0.3.0/muranopkgcheck/tests/test_manager.py", line 91, in test_validate
    errors = mgr.validate(validators=[MockValidator])
  File "/builddir/build/BUILD/murano-pkg-check-0.3.0/muranopkgcheck/manager.py", line 137, in validate
    issues = self._to_list(itertools.chain(*report_chains), select, ignore)
  File "/builddir/build/BUILD/murano-pkg-check-0.3.0/muranopkgcheck/manager.py", line 99, in _to_list
    errors.extend(self._to_list(e, select, ignore))
                  ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/murano-pkg-check-0.3.0/muranopkgcheck/manager.py", line 83, in _to_list
    check_locals = tb.tb_frame.f_locals.copy()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'FrameLocalsProxy' object has no attribute 'copy'

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/07434108-python-murano-pkg-check/

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

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 Ben Beasley 2024-05-11 12:13:44 UTC
Based on https://github.com/python/cpython/issues/118921 and the associated (merged) PR https://github.com/python/cpython/pull/118933, it looks like the fix for this will be in CPython itself.


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