[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] python in jail

From: Olivier Sessink
Subject: Re: [Jailkit-users] python in jail
Date: Sun, 24 Nov 2019 17:17:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 15-11-19 19:29, AngryNorseMan wrote:
I am currently working to get python3 working on a amazon linux 2 system, the jail is working I have copied over all the files from the system I could find using the following.
repoquery -q -l --plugins python*

However when running python from inside the jail I receive:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f348fd3d540 (most recent call first):

I have attempted unsetting PYTHONPATH and unsetting and setting PYTHONHOME as well, get the same error regardless.  Everything else in the jail seems to be working however.

could it be something simple like a environment variable that is not set? (LANG or LC_ALL ?)

you might want to try strace to debug the issue (see https://olivier.sessink.nl/jailkit/howtos_debug_jails.html )


Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]