From owner-freebsd-questions@FreeBSD.ORG Mon Dec 12 12:53:13 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 87678106564A for ; Mon, 12 Dec 2011 12:53:13 +0000 (UTC) (envelope-from kowalczfbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 16C6B8FC21 for ; Mon, 12 Dec 2011 12:53:12 +0000 (UTC) Received: by eekc50 with SMTP id c50so3197370eek.13 for ; Mon, 12 Dec 2011 04:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; bh=DrPwq4/8hJ2JC4FdxeYyTGjvBLs9SZdU6Z4Xb4PzZFg=; b=ESB0hhtDZclULSzz+/qMOCsv3ASq31UMzeMaWQDiwj//RdRiM2nU2Sd6kZKpJqEhvQ LEmGyGCkEGBxPIwXUAthcG3DKwP9TY14vx/lzxhQLgoLjCtfM+bl7OpulJ5YlGLfPOg6 dxQUB3aISGmJ8oMhhKYUBtwgHpR1fazMO4VbU= Received: by 10.14.8.16 with SMTP id 16mr2582722eeq.246.1323692557734; Mon, 12 Dec 2011 04:22:37 -0800 (PST) Received: from wymiot.localnet (87-207-35-49.dynamic.chello.pl. [87.207.35.49]) by mx.google.com with ESMTPS id a60sm74681460eeb.4.2011.12.12.04.22.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 04:22:36 -0800 (PST) From: Tomasz Kowalczyk To: freebsd-questions@freebsd.org Date: Mon, 12 Dec 2011 13:22:33 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.0-PRERELEASE; KDE/4.7.4; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201112121322.33850.kowalczfbsd@gmail.com> Subject: Re: 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 12:53:13 -0000 On Monday 12 of December 2011 06:31:46 Michael Ross wrote: > 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. Is user 'dummy' in same groups that 'michael' is ? I think it can be something with permissions, maybe files in /local/lib/python2.7/ got strange permissions ? Basically module 'site' (site.py in detail) is loaded by interpreter on early start, so if it can't read it , python will raise this error.