From: Daniel R. <dr...@li...> - 2008-07-22 15:03:39
|
Michael Like I said, the problem is not pymol-specific; no modules can be found even when explicitly pointing PYTHONHOME to them. Pymol0.99 off the website works fine since it comes packaged with its own python modules. The one I'd like to get to work is a 1.0rc2 obtained from synaptic. It locates itself in /usr/bin/pymol and looks like this #!/bin/sh # debian wrapper script for pymol export PYMOL_DATA=/usr/share/pymol export PYMOL_PATH=/var/lib/python-support/python2.5/pymol/ export CHEMPY_DATA=/usr/share/chempy python2.5 ${PYMOL_PATH}/__init__.py $* Thanks for your help Daniel On Tue, 2008-07-22 at 16:54 +0200, Michael Banck wrote: > On Tue, Jul 22, 2008 at 03:38:53PM +0100, Daniel Rigden wrote: > > 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 > > Are you saying python cannot find any modules? In that case, the > problem does not sound pymol specific at all. > > > 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 > > Are you running the Ubuntu pymol package, or a self-compiled one? If > the former, does simply running "pymol" work or not? > > > Michael -- 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. |