At some days I don't like developing very much. I've got a tiny little Python helper app that fixes screwed up encodings. The code works fine in the PyCharm IDE. It also works fine when executing the built app from terminal. When using the shell in Xojo to execute the app I get
Fatal Python error: Py_Initialize: unable to load the file system codec
zipimport.ZipImportError: can't decompress data; zlib not available
Current thread 0x00007fff72d82000 (most recent call first):
Abort trap: 6
Goggle tells me that this is a problem between different Python installations: "Check PYTHONPATH and PYTHONHOME system variable and make sure it doesn't points to Python 2.x"
The Xojo docs tell me that a Xojo shell is not the normal shell. Can I change PYTHONPATH and PYTHONHOME dynamically for the Xojo shell to reflect the path to the Python in the app?
The code needs a library that needs Python 3 so that using the Einhugur plugin for the Python code is not possible.