Running some Python programs on z/OS I got the above error when using Python 11.
If seems that when the C code was compiled, an option (which I cannot find documented) says make it downward compatible.
The fix is easy…
- Mount the Python 11 file system r/w (this is a one of)
- cd /u/ibmuser/python/v3r11/lib or what every library you are using
- ln -s libpython3.11.so libpython3.8.so
- This says… if you are looking for libpython3.8.so … go and use libpython3.11.so.
The command ls -ltr /u/ibmuser/python/v3r11/lib/libpython* gave
-rwxr-xr-x ... Jul 15 12:09 /u/ibmuser/python/v3r11/lib/libpython3.11.so lrwxrwxrwx ... Sep 6 12:11 /u/ibmuser/python/v3r11/lib/libpython3.8.so -> libpython3.11.so