Warren

Thanks for the quick reply.  I tried what you suggested but I get the
same error.

How can I check how the path has been configured?  It seems as if there
is only one python so there shouldn't be scope for confusion; I can only
find one site.py, for example, in

/usr/lib/python2.5/site.py

[I'm assuming /usr/lib64/python2.5/site.py is a link]

On the other hand, in Synaptic, I see

python
python2.5
python2.5-minimal

all separately listed and installed, which I don;t really understand.
The Installed version of python is 2.5.2-0ubuntu1, while for the others
it's 2.5.2-2ubuntu4.  

Thanks again

Daniel

On Tue, 2008-07-22 at 07:59 -0700, DeLano Scientific wrote:
> Daniel,
> 
> Any time you see the "import site failed" error from Python, you can infer 
> that there is a problem with the Python interpreter being unable to access 
> its required libraries.  Messages after that aren't typically informative.
> 
> This usually a path configuration issue, but I think it can also happen when 
> there is a version mismatch betweehn the executable the libraries (running 
> python 2.5 executables against 2.4 libraries or vice versa).
> 
> If using the system-provided Python, you shouldn't have to set PYTHON_HOME 
> since it will have been compiled in by default.  Try the following in a new 
> shell:
> 
> export PYMOL_PATH=/var/lib/python-support/python2.5/pymol/
> python2.5 ${PYMOL_PATH}/__init__.py
> 
> Cheers,
> Warren
> --
> DeLano Scientific LLC
> Subscriber Support Services
> mailto:supp...@delsci.com
> 
> 
> -----Original Message-----
> From: pymol-users-boun...@lists.sourceforge.net 
> [mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf Of Daniel Rigden
> Sent: Tuesday, July 22, 2008 7:39 AM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] python/pymol malfunction on new Ubuntu installation
> 
> Dear all
> 
> First let me confess that my problem does not just involved pymol.
> However, it is hampering my use of pymol amongst other things and there must 
> be many python experts who read this list.
> 
> My problem, on a completely fresh Ubuntu 8.04 install, is that python can 
> find modules when asked to import them.  So
> 
> export PYMOL_PATH=/var/lib/python-support/python2.5/pymol/
> export PYTHONHOME=/usr/lib/python2.5
> python2.5 ${PYMOL_PATH}/__init__.py
> 
> gives me
> 
> 'import site' failed; use -v for traceback Traceback (most recent call last):
>   File "/var/lib/python-support/python2.5/pymol//__init__.py", line 109, in 
> <module>
>     import threading
> ImportError: No module named threading
> 
> 
> /usr/lib/python2.5 contains site.py, threading.py and all the rest.
> 
> 
> Can anyone help?  I'd be very grateful.
> 
> Daniel
> 
-- 
Dr Daniel John Rigden                     Tel:(+44) 151 795 4467
School of Biological Sciences             FAX:(+44) 151 795 4406
Room 101, Biosciences Building
University of Liverpool
Crown St.,
Liverpool L69 7ZB, U.K.


Reply via email to