The exception is:SIGBUS 'bus error' detected

Dear AppImage experts,
I am trying to build an AppImage for the SALOME opensource project using linuxdeploy and appimagetool.
Following the APPIMAGE documentation:

  • I ran linuxdeploy to extract all the dependencies
    ./linuxdeploy-x86_64.AppImage -d ./salome.desktop -i ./salome.png --appdir SALOME.AppImage
  • I ran appimagetool to build the AppImage file:
    ./appimagetool-x86_64.AppImage SALOME-x86_64.AppImage
  • Since the SALOME launcher is a script, I customised the AppRun as a launching script, following the example given on the AppImage online documentation
    I noticed that some libraries like e.g. libGLX.so was not added by linuxdeploy.
    I can successfully start the generated AppImage.
    Unfortunately, when I exit the AppImage based application, I get the following error messages to which, so far, I did not find a solution.
    Do you know what could be wrong here ? Maybe I missed some steps in the AppImage generation.
    In advance, many thanks for your valuable help.

Trace reads:
ModuleNotFoundError: No module named ‘tempfile’
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named ‘encodings’

Current thread 0x00007fa6cdf74740 (most recent call first):
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f7478334740 (most recent call first):
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fb0c7543740 (most recent call first):
*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGBUS 'bus error' detected.
*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGBUS 'bus error' detected.
*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGBUS 'bus error' detected.
*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGBUS 'bus error' detected.
*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGBUS 'bus error' detected.

Hello @nitawa,

welcome to AppImage. For Python applications, please use one of the specialized tools, such as

If you have questions on how to use those tools, best ask directly in the respective GitHub projects because these tools’ authors don’t read here.

Happy AppImaging!

Thanks for your reply. In our case, we are not relying on miniconda, since building Python and embedding the required modules. But I will check the links and get back if I face some showstopper.
Thanks.