Bug 2246060 - python-etcd fails to build with Python 3.13: 'Logger' object has no attribute 'warn'
Summary: python-etcd fails to build with Python 3.13: 'Logger' object has no attribute...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-etcd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Neil Hanlon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-25 08:04 UTC by Karolina Surma
Modified: 2024-06-10 09:43 UTC (History)
4 users (show)

Fixed In Version: python-etcd-0.4.5-33.fc41
Clone Of:
Environment:
Last Closed: 2024-06-10 09:43:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-etcd pull-request 5 0 None None None 2024-06-10 09:26:47 UTC
Github jplana python-etcd pull 288 0 None open Support Python 3.13 2024-06-10 09:26:47 UTC

Description Karolina Surma 2023-10-25 08:04:30 UTC
python-etcd fails to build with Python 3.13.0a1.

+ nosetests-3 src/etcd/tests/unit/
...................................E......................................................................................
======================================================================
ERROR: Test is_acquired failures
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-etcd-0.4.5/src/etcd/tests/unit/test_lock.py", line 84, in test_is_not_acquired
    self.assertEqual(self.locker.is_acquired, False)
                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-etcd-0.4.5/src/etcd/lock.py", line 53, in is_acquired
    _log.warn("Lock was supposedly taken, but we cannot find it")
    ^^^^^^^^^
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/06561164-python-etcd/

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

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 Admin user for bugzilla script actions 2023-11-19 00:29:19 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin user for bugzilla script actions 2023-11-21 00:06:00 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Aoife Moloney 2024-02-15 23:01:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 4 Miro Hrončok 2024-06-10 09:23:54 UTC
This blocks the rebuild of samba.


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