Hi Ed,
I hope you have a couple of minutes to help me.
I'm trying to install relax in Windows XP. First, I installed Python 2.4
with an interpreter for Windows named ActivePython. I also installed the
extensions Numeric_23.8 and ScientificPython-2.4.9.
Then I got relax-1.2.6.src.tar.bz2, uncompressed it and copied the files
to my laptop.
After adding the extension ".py" to the excecutable "relax", I could
sort of run it, well, I only got the python compiled versions for the
executables in the base directory (color, data, errors, io and processes
".pyc") and that was all. No command window phython-looking-like or
anything similar.
I tried to run "relax.py" from the Python IDE (using the "friendly"
ActivePython). The result was the same but I got some more information
from Python. The problem so far is that processes.py is trying to import
some linux commands (namely: kill, popopen3, and system)
Here is the output from python:
exec codeObject in __main__.__dict__
File "D:\Program Files\NMR\relax-1.2.6\relax.py", line 71, in ?
from generic_fns.main import Generic
File "D:\Program Files\NMR\relax-1.2.6\generic_fns\main.py", line 31,
in ?
from minimise import Minimise
File "D:\Program Files\NMR\relax-1.2.6\generic_fns\minimise.py", line
27, in ?
from processes import RelaxPopen3
File "D:\Program Files\NMR\relax-1.2.6\processes.py", line 23, in ?
from os import kill, popen3, system
ImportError: cannot import name kill
I greped the scripts looking for more importing features and I got:
processes.py: from os import kill, popen3, system
relax: from os import F_OK, access, getpid,
putenv
io.py: from os import devnull
io.py: from os import F_OK, access, makedirs,
remove, stat
sconstruct: from os import F_OK, access, chdir,
getcwd, lstat, path, remove, rmdir, sep, symlink, system, walk
generic_fns/dasha.py: from os import F_OK, access, chdir,
getcwd, system
generic_fns/grace.py: from os import system
generic_fns/molmol.py: from os import popen
generic_fns/palmer.py: from os import F_OK, P_WAIT, access,
chdir, chmod, getcwd, listdir, remove, spawnlp, system
generic_fns/pdb.py: from os import F_OK, access
generic_fns/selection.py: from os import F_OK, access
prompt/interpreter.py: from os import F_OK, access
sample_scripts/full_analysis.py: from os import getcwd, listdir
For me it is kind of weird the phython did not complain about the
importing from os in the file relax (the second grep entry).
Do you think this could eventually work replacing these commands with
some windows stuff?
many thanks in advance
Daniel