Closed genghisken closed 9 years ago
Did fresh install on CentOS 6.6. Errors if you try to run IRAF! Still investigating. However, if I log onto another machine and execute the SAME CODE on a CentOS 6.5 machine all seems to work OK.
>>> import pyraf
**execvp failed, '[Errno 2] No such file or directory'**
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/__init__.py", line 122, in <module>
iraf.Init(doprint=0, hush=1)
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/iraffunctions.py", line 261, in Init
userpkg.run(_doprint=0, _hush=hush, _save=1)
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/iraftask.py", line 359, in run
self._run(redirKW, specialKW)
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/iraftask.py", line 1667, in _run
self._runCode()
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/iraftask.py", line 1470, in _runCode
self._clFunction(*parList, **kw)
File "<CL script clpackage.user>", line 57, in login
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/iraftask.py", line 767, in __call__
return self.run(*args, **kw)
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/iraftask.py", line 359, in run
self._run(redirKW, specialKW)
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/iraftask.py", line 808, in _run
irafexecute.IrafExecute(self, pyraf.iraf.getVarDict(), **redirKW)
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/irafexecute.py", line 339, in IrafExecute
irafprocess.run(task, pstdin=stdin, pstdout=stdout, pstderr=stderr)
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/irafexecute.py", line 504, in run
self.writeString(taskname+redir_info+'\n')
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/irafexecute.py", line 571, in writeString
self.write(Asc2IrafString(s))
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/irafexecute.py", line 595, in write
tobytes(dsection))
File "/home/sne/Ureka/python/lib/python2.7/site-packages/pyraf-2.1.6-py2.7-linux-x86_64.egg/pyraf/subproc.py", line 229, in write
if bytes_write(self.toChild, strval) != len(strval):
File "/home/sne/Ureka/python/lib/python2.7/site-packages/stsci.tools-3.2.2-py2.7.egg/stsci/tools/for2to3.py", line 114, in bytes_write
return os.write(fd, tobytes(bufstr))
OSError: [Errno 32] Broken pipe
Turns out this is one of a whole raft of issues with the CentOS 6.6 install. E.g.:
sne::psweb { ~ }-> which xgterm
/home/sne/Ureka/bin/xgterm
sne::psweb { ~ }-> xgterm &
[1] 32109
sne::psweb { ~ }-> bash: /home/sne/Ureka/bin/xgterm: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[1]+ Exit 126 xgterm
sne::psweb { ~ }->
Solution is to install 32 bit c library - glibc, which is not installed by default.
yum install glibc.i686
The pipeline needs to be tested on CentOS 6.6, including the prerequisite Ureka installation.