Majdak
March 30, 2025, 12:32pm
1
Looks like version 9.1.1244 broke python. Calling :python3 or :py3 generates errors:
E448: Could not load library function PyTuple_SET_ITEM E263: Sorry, this command is disabled, the Python library could not be loaded.
I noticed this because YouCompleteMe refuse to run.
If you suspect that it’s something in packaging that broke, you should be reporting it to the python or vim Maintainers on https://bugzilla.opensuse.org , The chances that any of them are monitoring the forums probably isn’t high.
Majdak
March 30, 2025, 6:29pm
3
I posted a comment on Request 1264624: Submit vim - openSUSE Build Service
I didn’t find appropriate place for broken application package reporting on bugzilla.
Accepted request is not the best place to post comments.
If no category fits, select Other, provide meaningful subject that makes it clear what package it is about, then triaging team will route it appropriately. You may also Cc the last person who updated this package.
Anyway, this is upstream bug
opened 11:21AM - 27 Mar 25 UTC
closed 09:50PM - 27 Mar 25 UTC
bug
### Steps to reproduce
HI, I've not noticed this issue on Intel, only on ARM, … though given the commit which broke is only two
days old, it is possible Ubuntu 24.04.2 on Intel may be affected.
## Build Raspberry PI
- Install Ubuntu 24.04.2
- `git clone github.com/vim/vim`
- `cd vim`
- `./configure --prefix=/usr --with-vim-name=vim.withx --with-ex-name=ex.withx --with-view-name=view.withx --with-features=huge --enable-gui=no --enable-multibyte --with-x --enable-cscope --enable-tclinterp=no --enable-python3interp=dynamic`
- `make VIMRUNTIME=`
## Test:
```
DISPLAY= ./src/vim.withx -u NONE -U NONE -T dumb '+python3 print(sys.version)' +q
```
## Result:
```
Error detected while processing command line:
E448: Could not load library function PyTuple_SET_ITEM
E263: Sorry, this command is disabled, the Python library could not be loaded.
```
Edit: Quick test of Ubuntu on Intel (amd64) shows the same error.
```
$ git log -1
35cb38d34b69 - (16 hours ago) patch 9.1.1244: part of patch v9.1.1242 was wrong - Christian Brabandt (HEAD -> master, tag: v9.1.1244, origin/master, origin/HEAD)
$ file ./src/vim
./src/vim: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=88cdb6adf8c7ea53ccb4266b71dba197f18453d4, for GNU/Linux 3.2.0, with debug_info, not stripped
$ DISPLAY= ./src/vim -u NONE -U NONE -T dumb '+python3 print(sys.version)' +q
Error detected while processing command line:
E448: Could not load library function PyTuple_SET_ITEM
E263: Sorry, this command is disabled, the Python library could not be loaded.
```
### Expected behaviour
## Build:
```
$ git reset --hard 9d5487f6fdc4
$ ./configure --prefix=/usr --with-vim-name=vim.withx --with-ex-name=ex.withx --with-view-name=view.withx --with-features=huge --enable-gui=no --enable-multibyte --with-x --enable-cscope --enable-tclinterp=no --enable-python3interp=dynamic
$ make VIMRUNTIME=
```
## Test:
```
DISPLAY= ./src/vim.withx -u NONE -U NONE -T dumb '+python3 print(sys.version)' +q
```
## Result:
```
3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
```
### Version of Vim
Lasted master
### Environment
Raspberry PI (ubuntu 24.04.2 on ARM64)
Last working commit: 9d5487f6fdc4
First non-working commit: 038be2701dba
### Logs and stack traces
```shell
```
and the best would be to simply prepare SR including the patch mentioned there.
What’s done is done, but I said Bugzilla, not OpenBuildService. The OBS comments are not a bugtracker.
If you’re filing a bug on the bugzilla, and you’re not sure where it fits, putting it in the “Other” category is always a safe bet, and the Triagers will get it routed to the correct place.