it's a shame... python error over error

Barry barry at barrys-emacs.org
Fri Dec 13 13:24:29 EST 2024


> On 13 Dec 2024, at 15:54, aotto1968 via Python-list <python-list at python.org> wrote:
> 
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open shared object file: No such file or directory

This is a debug build?

Try setting LD_LIBRARY_PATH to point at the folder that contains the .so.
Test with `ldd python3` which will show which .so libs python3 needs and if they are found.

This is what I see on Fedora 41 as an example of the output.

$ ldd /usr/bin/python3
        linux-vdso.so.1 (0x0000ffffb8515000)
        libpython3.13.so.1.0 => /lib64/libpython3.13.so.1.0 (0x0000ffffb7ea0000)
        libc.so.6 => /lib64/libc.so.6 (0x0000ffffb7cd0000)
        libm.so.6 => /lib64/libm.so.6 (0x0000ffffb7c20000)
        /lib/ld-linux-aarch64.so.1 (0x0000ffffb84d0000)

Barry




More information about the Python-list mailing list