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 ned.deily
Recipients bbi5291, ned.deily
Date 2010-11-24.11:06:28
SpamBayes Score 3.31679e-13
Marked as misclassified No
Message-id <>
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/", line 548, in <module>
  File "/usr/lib/python2.7/", line 530, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python2.7/", line 257, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python2.7/", line 232, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python2.7/", line 222, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python2.7/", line 541, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python2.7/", line 449, in get_config_vars
    _CONFIG_VARS['userbase'] = _getuserbase()
  File "/usr/lib/python2.7/", line 198, in _getuserbase
    return env_base if env_base else joinuser("~", ".local")
  File "/usr/lib/python2.7/", line 185, in joinuser
    return os.path.expanduser(os.path.join(*args))
  File "/usr/lib/python2.7/", line 256, in expanduser
    userhome = pwd.getpwuid(os.getuid()).pw_dir
KeyError: 'getpwuid(): uid not found: 12345'
Date User Action Args
2010-11-24 11:06:31ned.deilysetrecipients: + ned.deily, bbi5291
2010-11-24 11:06:31ned.deilysetmessageid: <>
2010-11-24 11:06:28ned.deilylinkissue10496 messages
2010-11-24 11:06:28ned.deilycreate