Brian Bi <bbi5...@gmail.com> added the comment: 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.) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10496> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com