Author bbi5291
Recipients bbi5291
Date 2010-11-22.03:57:59
SpamBayes Score 1.32023e-05
Marked as misclassified No
Message-id <1290398281.89.0.568058332092.issue10496@psf.upfronthosting.co.za>
In-reply-to
Content
This bug is Linux-specific.

When Python cannot find the home directory of the user invoking it, it prints "'import site' failed; use -v for traceback".

This occurs only when both of these conditions are met:
1. /etc/passwd contains no entry for the current real UID
2. the HOME environment variable does not exist

To duplicate this bug, compile and run the attached program as root.
(This program assumes that 12345 is not a legitimate user on your system, and that Python is at /usr/bin/python ; if this is not the case then edit it accordingly.)
History
Date User Action Args
2010-11-22 03:58:01bbi5291setrecipients: + bbi5291
2010-11-22 03:58:01bbi5291setmessageid: <1290398281.89.0.568058332092.issue10496@psf.upfronthosting.co.za>
2010-11-22 03:57:59bbi5291linkissue10496 messages
2010-11-22 03:57:59bbi5291create