From owner-freebsd-questions@FreeBSD.ORG Mon Dec 12 05:31:56 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A6B9106564A for ; Mon, 12 Dec 2011 05:31:56 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) by mx1.freebsd.org (Postfix) with ESMTP id 1C2828FC16 for ; Mon, 12 Dec 2011 05:31:55 +0000 (UTC) Received: from [188.108.5.199] (helo=michael-think) by www81.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1RZyUU-0007Mb-Bs for freebsd-questions@freebsd.org; Mon, 12 Dec 2011 06:31:54 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "freebsd-questions@FreeBSD.org" Date: Mon, 12 Dec 2011 06:31:46 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: User-Agent: Opera Mail/11.60 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.3/14116/Mon Dec 12 03:33:42 2011) Subject: Certain users can't start python X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 05:31:56 -0000 Hello, I am ... stuck. I've been trying to setup mercurials web frontend with apache, but apache won't start python. Not as cgi-script, not with mod_python. Investigating, I found this not only to be a problem with apache. Situation now: Users "michael" and "root" can run python. All others can't: Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] ImportError: No module named site For troubleshooting, I cloned "michael" to an new user "dummy", i. e. I created the user, copied all .dotfiles from "michael" over, adjusted permissions. "dummy" can't start python either. Changing accounts with su does not help: dummy$ su -l michael dummy$ su -m michael *both* can run python, michael$ su -l dummy michael$ su -m dummy *both* can not run python. Setting PYTHONHOME does not help -- the libraries are found (probably, the error messages disappear), the ImportError remains. It's been a couple of long days and maybe I'm missing something obvious? Any input would be greatly appreciated. 8.2 stable, python 2.7.2. As for python, I tried reinstalling. No change. TIA Michael