Bug 2290555 - python-neovim fails to build with Python 3.13: 'Logger' object has no attribute 'warn'
Summary: python-neovim fails to build with Python 3.13: 'Logger' object has no attribu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-neovim
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2291788 (view as bug list)
Depends On:
Blocks: F41FTBFS PYTHON3.13 F41FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2024-06-05 14:13 UTC by Karolina Surma
Modified: 2024-06-14 09:08 UTC (History)
5 users (show)

Fixed In Version: python-neovim-0.5.0-6.fc41
Clone Of:
Environment:
Last Closed: 2024-06-14 09:08:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-06-05 14:13:10 UTC
python-neovim fails to build with Python 3.13.0b1.

+ /usr/bin/python3 -m tox --current-env -q --recreate -e py313
ImportError while loading conftest '/builddir/build/BUILD/python-neovim-0.5.0-build/pynvim-0.5.0/test/conftest.py'.
test/conftest.py:11: in <module>
    import pynvim
pynvim/__init__.py:16: in <module>
    from pynvim.plugin import (Host, autocmd, command, decode, encoding, function,
pynvim/plugin/__init__.py:5: in <module>
    from pynvim.plugin.host import Host  # type: ignore[attr-defined]
pynvim/plugin/host.py:17: in <module>
    from pynvim.plugin import script_host
pynvim/plugin/script_host.py:19: in <module>
    debug, info, warn = (logger.debug, logger.info, logger.warn,)
E   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-b1/fedora-rawhide-x86_64/07532238-python-neovim/

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

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-b1/

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 Andreas Schneider 2024-06-06 05:55:07 UTC
https://github.com/neovim/pynvim/pull/569

Comment 2 Karolina Surma 2024-06-12 15:04:43 UTC
*** Bug 2291788 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2024-06-14 09:05:06 UTC
FEDORA-2024-ff77c332ee (python-neovim-0.5.0-6.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ff77c332ee

Comment 4 Fedora Update System 2024-06-14 09:08:27 UTC
FEDORA-2024-ff77c332ee (python-neovim-0.5.0-6.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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