From owner-freebsd-questions@FreeBSD.ORG Mon Dec 12 10:26:49 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 5F8C61065672 for ; Mon, 12 Dec 2011 10:26:49 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 208B88FC13 for ; Mon, 12 Dec 2011 10:26:49 +0000 (UTC) Received: by ghbg20 with SMTP id g20so4986169ghb.13 for ; Mon, 12 Dec 2011 02:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=tDU+gkVr4xwGFC9P6ka/rn33VGXH4UuILY9PWTY6aVs=; b=S82Q8v/NTvGDvupCixbWCwuIfJURNUsGDf/iVAwXiz2WlSrfuT+XK3KT0eMI+t/nTy sJsGLWY4dz+jMQTxTgL1vAI6jobV1PFJIi9kvxjqJfcCTJM6m431zhdNNnz3nNwqQmYn rUwXIXvK6tIAekVk+YTrfRaCML1MXxKnp5j0U= MIME-Version: 1.0 Received: by 10.101.189.34 with SMTP id r34mr235042anp.102.1323685607943; Mon, 12 Dec 2011 02:26:47 -0800 (PST) Received: by 10.236.111.134 with HTTP; Mon, 12 Dec 2011 02:26:47 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Dec 2011 11:26:47 +0100 Message-ID: From: David Demelier To: Michael Ross Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@FreeBSD.org" 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 10:26:49 -0000 2011/12/12 Michael Ross : > 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: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Could not find platform independent libraries = > =C2=A0 =C2=A0 =C2=A0 =C2=A0Could not find platform dependent libraries > =C2=A0 =C2=A0 =C2=A0 =C2=A0Consider setting $PYTHONHOME to [:] > =C2=A0 =C2=A0 =C2=A0 =C2=A0ImportError: 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. > How did dou clone the account ? Does account has a full correct home path in /etc/passwd ? > Changing accounts with su does not help: > =C2=A0 =C2=A0 =C2=A0 =C2=A0dummy$ su -l michael > =C2=A0 =C2=A0 =C2=A0 =C2=A0dummy$ su -m michael > *both* can run python, > > =C2=A0 =C2=A0 =C2=A0 =C2=A0michael$ su -l dummy > =C2=A0 =C2=A0 =C2=A0 =C2=A0michael$ 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" cheers, --=20 Demelier David