Running app packaged by PyInstaller from embedded interpreter

54 views
Skip to first unread message

Miklós Espák

unread,
Nov 7, 2023, 6:33:25 PM11/7/23
to PyInstaller
Hi all,

I would like to launch a Python app, packaged by PyInstaller, from a C++ application, using the Python C API.

The app builds well, it is linked to the "Python" lib of the PyInstaller package, and I can launch a Python script with it via the Python C API.

However, the core Python modules, e.g. "json", are not found. The original Python installation contains these as scripts, but PyInstaller compiles them to ".so"-s and puts them into "lib-dynload".

I added the "base_library.zip" and "lib-dynload" to the module search paths, but the modules are still not found.

Does anyone know how to load these modules?

Thank you so much!

Kind regards,
Miklos

Reply all
Reply to author
Forward
0 new messages