Bug 2279553 - ara fails to build with Python 3.13: AttributeError: 'Logger' object has no attribute 'warn'
Summary: ara fails to build with Python 3.13: AttributeError: 'Logger' object has no a...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ara
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Moreau-Simard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2291487 (view as bug list)
Depends On:
Blocks: F41FTBFS F41FailsToInstall PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-05-07 13:01 UTC by Karolina Surma
Modified: 2024-09-17 10:16 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-09-17 10:16:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-05-07 13:01:04 UTC
ara fails to build with Python 3.13.0a6.

5 tests fail with: AttributeError: 'Logger' object has no attribute 'warn'

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

logging: Remove undocumented and untested Logger.warn() and LoggerAdapter.warn() methods and logging.warn() function.
Deprecated since Python 3.3, they were aliases to the logging.Logger.warning() method,
logging.LoggerAdapter.warning() method and logging.warning() function.
(Contributed by Victor Stinner in gh-105376.)


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/07422757-ara/

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

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 Karolina Surma 2024-06-12 14:54:23 UTC
*** Bug 2291487 has been marked as a duplicate of this bug. ***

Comment 2 David Moreau-Simard 2024-06-12 15:31:54 UTC
This is already fixed upstream: https://github.com/ansible-community/ara/commit/e2882c84f9d1debfa159d71ad3f389adbe712edc

I've tested a successful scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=118918826

It will be released in ara 1.7.2 sometime soon.

Comment 3 Karolina Surma 2024-09-04 11:45:04 UTC
This package has failed to build with Python 3.13 so far. Fedora 41 is already in the Beta Freeze phase. What's your plan going forward? Will the package be fixed in time for the Final Freeze of Fedora 41 (planned on Oct 15th 2024)?
If you don't plan or can't fix the package before Fedora 41 goes into the Final Freeze phase, please retire the package. You can unretire it anytime during the Fedora 41 lifecycle - doing this now will simply ensure that we don't release Fedora with a broken package. Thank you!

Comment 4 David Moreau-Simard 2024-09-04 12:05:32 UTC
Hi, 1.7.2 was released this morning. Sorry for the delay, ENOTIME.

I will update the spec for rawhide and supported releases of fedora.

Comment 5 David Moreau-Simard 2024-09-04 12:14:39 UTC
Update for rawhide: https://src.fedoraproject.org/rpms/ara/pull-request/39

Comment 6 David Moreau-Simard 2024-09-05 00:15:40 UTC
Update for f41: https://src.fedoraproject.org/rpms/ara/pull-request/40

Comment 7 Fedora Fails To Install 2024-09-08 19:03:52 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/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 42.

Thanks for taking care of it!

Comment 8 Fedora Fails To Install 2024-09-17 10:16:54 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/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 41.

Thanks for taking care of it!


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