[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
/home/mwm/lib/python
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)
['',
 '/usr/opt/lib/python2.5/site-packages/setuptools-0.6c5-py2.5.egg',
 '/usr/opt/lib/python2.5/site-packages/Cheetah-2.0rc7-py2.5-freebsd-6.2-STABLE-amd64.egg',
 '/usr/opt/lib/python2.5/site-packages/lxml-1.3.2-py2.5-freebsd-6.2-STABLE-amd64.egg',
 '/home/mwm/lib/python',
 '/usr/opt/lib/python25.zip',
 '/usr/opt/lib/python2.5',
 '/usr/opt/lib/python2.5/plat-freebsd6',
 '/usr/opt/lib/python2.5/lib-tk',
 '/usr/opt/lib/python2.5/lib-dynload',
 '/usr/opt/lib/python2.5/site-packages',
 '/usr/opt/lib/python2.5/site-packages/Numeric',
 '/usr/opt/lib/python2.5/site-packages/gtk-2.0',
 '/usr/opt/lib/python2.5/site-packages']
>>> 

     <mike
-- 
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]