Date: Mon, 12 Dec 2011 11:26:47 +0100 From: David Demelier <demelier.david@gmail.com> To: Michael Ross <gmx@ross.cx> Cc: "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org> Subject: Re: Certain users can't start python Message-ID: <CAO%2BPfDfQ5m91JXPVXRaEvFm3Gsvpss2cbQg0sQfuShDvEhB3ig@mail.gmail.com> In-Reply-To: <op.v6c2y8ojg7njmm@michael-think> References: <op.v6c2y8ojg7njmm@michael-think>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/12/12 Michael Ross <gmx@ross.cx>: > 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 = <prefix> > =C2=A0 =C2=A0 =C2=A0 =C2=A0Could not find platform dependent libraries <e= xec_prefix> > =C2=A0 =C2=A0 =C2=A0 =C2=A0Consider setting $PYTHONHOME to <prefix>[:<exe= c_prefix>] > =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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO%2BPfDfQ5m91JXPVXRaEvFm3Gsvpss2cbQg0sQfuShDvEhB3ig>