Malformed header from CGI script: Failed to import the site module Traceback (most recent call last): File "/usr/lib/python3.6/", line 544, in main() File "/usr/lib/python3.6/", line 530, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python3.6/", line 282, in addusersitepackages user_site = getusersitepackages() File "/usr/lib/python3.6/", line 258, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/usr/lib/python3.6/", line 248, in getuserbase USER_BASE = get_config_var('userbase') File "/usr/lib/python3.6/", line 601, in get_config_var return get_config_vars().get(name) File "/usr/lib/python3.6/", line 558, in get_config_vars _CONFIG_VARS['userbase'] = _getuserbase() File "/usr/lib/python3.6/", line 205, in _getuserbase return joinuser("~", ".local") File "/usr/lib/python3.6/", line 184, in joinuser return os.path.expanduser(os.path.join(*args)) File "/usr/lib/python3.6/", line 247, in expanduser userhome = pwd.getpwuid(os.getuid()).pw_dir KeyError: 'getpwuid(): uid not found: 3224003'