[New-bugs-announce] [issue14238] python shouldn't need username in passwd database

Arkadiusz Miskiewicz Arkadiusz Miskiewicz report at bugs.python.org
Fri Mar 9 10:22:00 CET 2012

New submission from Arkadiusz Miskiewicz				Arkadiusz Miskiewicz <arekm at maven.pl>:

I'm trying to run python from UID which doesn't have entry in passwd database. This fails with:

 Traceback (most recent call last):
File "/usr/share/python2.7/site.py", line 567, in <module>
File "/usr/share/python2.7/site.py", line 549, in main
File "/usr/share/python2.7/site.py", line 278, in addusersitepackages
File "/usr/share/python2.7/site.py", line 253, in getusersitepackages
File "/usr/share/python2.7/site.py", line 243, in getuserbase
File "/usr/share/python2.7/sysconfig.py", line 522, in get_config_var
File "/usr/share/python2.7/sysconfig.py", line 426, in get_config_vars
File "/usr/share/python2.7/sysconfig.py", line 184, in _getuserbase
File "/usr/share/python2.7/sysconfig.py", line 171, in joinuser
File "/usr/share/python2.7/posixpath.py", line 260, in expanduser
KeyError: 'getpwuid(): uid not found: 51'

components: Interpreter Core
messages: 155215
nosy: arekm
priority: normal
severity: normal
status: open
title: python shouldn't need username in passwd database
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list