Bug 2311860

Summary: vim python plugins fail due to _PyObject_NextNotImplemented symbol removed from python >= 3.13
Product: [Fedora] Fedora Reporter: Wes Turner <wes.turner>
Component: vimAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: bnrj.rudra, carl, fedora, michael.scheiffler, mmuehlfe, nphilipp, praiskup, robatino, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vim-9.1.737-1.fc42 vim-9.1.737-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-23 11:14:39 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: 2311031, 2247867    

Description Wes Turner 2024-09-12 05:34:39 UTC
Description of problem: vim python plugins fail due to _PyObject_NextNotImplemented a private symbol removed from python3.13+


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
a.1. $ vim
a.2. :python3 print(1+1)

b.1. $ vim -c ':python3 import sys; print(1+1, file=sys.stderr)'

c.1. $ vim -T dumb -c ':python3 import pprint,sys,site; pprint.pprint(dict(version=sys.version, platform=sys.platform, path=sys.path))' -c exit


Actual results:

```
$ vim --noplugin -T dumb -c ':python3 import pprint,sys,site; pprint.pprint(dict(version=sys.version, platform=sys.platform, path=sys.path))' -c exit

Error detected while processing command line:                                                                                                                                   
E448: Could not load library function _PyObject_NextNotImplemented                                                                                                              
E263: Sorry, this command is disabled, the Python library could not be loaded. 
```

Expected results:

:python3 should work


Additional info:

There's a PR to remove the reference to the now-removed _PyObject_NextNotImplemented private symbol from vim:

https://github.com/vim/vim/pull/15649 ... https://github.com/vim/vim/commit/97a5be46879ab2b24bb9b485966be031865e1191 (2024-09-09)

Comment 1 Pavel Raiskup 2024-09-17 05:00:15 UTC
Patch is applied upstream, I've worked around this with:

$ fedpkg clone vim && cd vim
$ ./vim-update.sh  # terminate soon enough, before the tarball upload!
$ fedpkg srpm
$ mock /home/praiskup/rh/packages/vim/vim-9.1.727-1.fc42.src.rpm

Comment 2 Zdenek Dohnal 2024-09-17 15:41:58 UTC
The current upstream patchlevel breaks upstream test suite with Python 3.13... I'll look into it further what is the problem.

Comment 3 Zdenek Dohnal 2024-09-20 06:25:26 UTC
*** Bug 2313514 has been marked as a duplicate of this bug. ***

Comment 4 Zdenek Dohnal 2024-09-20 21:38:00 UTC
I was able to create a fix one of the issues which came up with Python 3.13 and broke test suite after Vim starts requiring Python stable abi - I will still need to waive the suite on F41+, because there is still one issue lingering there, but I will build the package to provide Python3 module support in the meantime.

Comment 5 Fedora Update System 2024-09-20 21:56:44 UTC
FEDORA-2024-08fde02705 (vim-9.1.737-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-08fde02705

Comment 6 Fedora Update System 2024-09-20 22:23:38 UTC
FEDORA-2024-f740e0bde9 (vim-9.1.737-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f740e0bde9

Comment 7 Fedora Update System 2024-09-21 03:02:52 UTC
FEDORA-2024-f740e0bde9 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f740e0bde9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f740e0bde9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 RudraB 2024-09-21 14:19:41 UTC
*** Bug 2313956 has been marked as a duplicate of this bug. ***

Comment 9 Zdenek Dohnal 2024-09-23 10:22:45 UTC
*** Bug 2313954 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2024-09-23 11:14:39 UTC
FEDORA-2024-08fde02705 (vim-9.1.737-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-09-24 00:16:29 UTC
FEDORA-2024-f740e0bde9 (vim-9.1.737-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.