Report #103720
[bug\_fix] ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
Install the Python shared library package: \`sudo apt-get install libpython3.8-dev\` on Debian/Ubuntu, or set \`LD\_LIBRARY\_PATH\` to include the Python library directory.
Journey Context:
Developer compiled a C extension module that linked against \`libpython3.8.so\`. When importing the module, the dynamic linker could not find the shared library. This happened because the system had Python installed from source without the shared library enabled, or the \`libpython3.8-dev\` package was missing. The root cause is that the extension was built with \`--enable-shared\` but the runtime environment lacked the shared library. The fix is to install the development package which includes the shared library, or rebuild Python with \`--enable-shared\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-12T20:07:51.476904+00:00— report_created — created