[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Frustrated trying to build beecrypt & rpm on a Debian system whereI'm not root

On Tue, 27 Nov 2007 13:25:19 -0800 (PST) Valery Reznic <valery_reznic yahoo com> wrote:
> > it would be sufficient.  But it seems not to be
> > because a python2.4
> > program that runs does not look for modules in
> > $HOME/packages/lib/python2.4.
> May be you need use PYTHONHOME ?

Don't. Please, for gru's sake, don't do that!

PYTHONHOME points to the libraries and etc. that come with
python. Normally, Python finds that stuff by itself, and you set
PYTHONHOME when you want to run a python binary and have it use a
different set of python libraries than the ones it's installed and/or
built with. Setting this on a system with multiple python
installations is a quick way to go crazy.

> If it's doesn't help you can try to run your program
> under strace, and see where python tried to open
> files.

It's easier to ask pyhon:

bhuda% echo $PYTHONPATH
bhuda% python
Python 2.5.1 (r251:54863, Aug 11 2007, 18:08:18) 
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
>>> from sys import path
>>> from pprint import pprint
>>> pprint(path)

Mike Meyer <mwm mired org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]