$PYTHONHOME ???

David Lloyd-Jones dlloyd1104 at rogers.com
Thu Oct 3 18:21:47 CEST 2002


Running Red Hat Linux 7.3, I'm getting mail once an hour which says:

/etc/cron.hourly/diskcheck:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import exceptions' failed; use -v for traceback
Warning!  Falling back to string-based exceptions
'import site' failed; use -v for traceback

I guess I don't know what <prefix> and :<exec_prefix> mean.

Both my python and python2 are at /usr/bin.

Is the following what I want in my .bashrc:

set PYTHONHOME=/usr/bin
export PYTHONHOME
?

Or is .bashrc even what I want to be working on?

I've tried it with and without the set, and I've tried it as /usr/bin 
and as /usr/bin/python, and I'm not sure which, if any of them is working.

                           TIA.

                              -dlj.




More information about the Python-list mailing list