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.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users


Reply via email to