Closed mwu-tow closed 5 years ago
Confirmed on Fedora 28. No issue on Windows.(
It would be helpful if you provided stack trace of crash
The crash is coming from Dataframes module initialization:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
O believe it should work once PYTHONHOME and PYTHONPATH are appropriately set. But what really puzzles me is why it works in shell luna (and tests executable) but fails only in luna-empire.
Actually I pinned the issue. PYTHONHOME
and PYTHONPATH
are for some reason set in luna-empire process to some stupid values. That cause Python interpreter to look for its standard library in wrong place and refuse to setup what causes Dataframes in turn to fail to load and the issue observed.
The question remains why the luna-empire has these variables set.
And I think we have the culprit: https://github.com/AppImage/AppImageKit/blob/appimagetool/master/src/AppRun.c#L169
@mwu-tow we can deal with it setting proper variable in runner/supervisor
The following crashes Luna Empire when I use Dataframes built from sources:
It works when using packaged Dataframes. It works also with shell luna. Confirmed on Ubuntu 18.04.