This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cinerar
Recipients cinerar
Date 2017-09-14.15:12:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When i try to run youtube-dl inside docker container from non root user i recieve this error:

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: 1000'

I believe this problem is described here:

this simple fix make it work again
Date User Action Args
2017-09-14 15:12:09cinerarsetrecipients: + cinerar
2017-09-14 15:12:08cinerarsetmessageid: <>
2017-09-14 15:12:08cinerarlinkissue31469 messages
2017-09-14 15:12:08cinerarcreate