Author ned.deily
Recipients bbi5291, ned.deily
Date 2010-11-24.11:06:28
SpamBayes Score 3.31679e-13
Marked as misclassified No
Message-id <1290596791.05.0.701883643508.issue10496@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is reproducible on a current Debian Linux system although with different results for current versions of Python (only security issues are accepted against 2.6).  Unlike with 2.6, 3.1 reports no error.  2.7 and 3.2 both fail with an exception:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site.py", line 548, in <module>
    main()
  File "/usr/lib/python2.7/site.py", line 530, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python2.7/site.py", line 257, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python2.7/site.py", line 232, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python2.7/site.py", line 222, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python2.7/sysconfig.py", line 541, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python2.7/sysconfig.py", line 449, in get_config_vars
    _CONFIG_VARS['userbase'] = _getuserbase()
  File "/usr/lib/python2.7/sysconfig.py", line 198, in _getuserbase
    return env_base if env_base else joinuser("~", ".local")
  File "/usr/lib/python2.7/sysconfig.py", line 185, in joinuser
    return os.path.expanduser(os.path.join(*args))
  File "/usr/lib/python2.7/posixpath.py", line 256, in expanduser
    userhome = pwd.getpwuid(os.getuid()).pw_dir
KeyError: 'getpwuid(): uid not found: 12345'
History
Date User Action Args
2010-11-24 11:06:31ned.deilysetrecipients: + ned.deily, bbi5291
2010-11-24 11:06:31ned.deilysetmessageid: <1290596791.05.0.701883643508.issue10496@psf.upfronthosting.co.za>
2010-11-24 11:06:28ned.deilylinkissue10496 messages
2010-11-24 11:06:28ned.deilycreate