Quote by: mshemuniI have a problem with PyRaf and IRAF. I installed these in two different methods. First with http://www.astrosen.unam.mx/~favilac/IRAF/ and second with http://gracca.wordpress.com/how-to-install-iraf/ method and also installed PyRaf using pip and source code. How ever I couldn't manage to solve the problem.
The problem is:
Whenever I try to start PyRaf in a folder contented login.cl and uparm/, it wont start. PyRaf and IRAF separately work fine. But in same folder I continuously get error massage below:
Traceback (most recent call last):
File "/usr/local/bin/pyraf", line 94, in
from pyraf import doCmdline, _use_ipython_shell, runCmd, __version__
File "/usr/local/lib/python2.7/dist-packages/pyraf/__init__.py", line 223, in
iraf.Init(**_initkw)
File "/usr/local/lib/python2.7/dist-packages/pyraf/iraffunctions.py", line 261, in Init
userpkg.run(_doprint=0, _hush=hush, _save=1)
File "/usr/local/lib/python2.7/dist-packages/pyraf/iraftask.py", line 319, in run
self.initTask(force=1)
File "/usr/local/lib/python2.7/dist-packages/pyraf/iraftask.py", line 1382, in initTask
parlist=self._defaultParList, parfile=self._defaultParpath)
File "/usr/local/lib/python2.7/dist-packages/pyraf/cl2py.py", line 133, in cl2py
tree = _parser.parse(tokens, fname=efilename)
File "/usr/local/lib/python2.7/dist-packages/pyraf/clparse.py", line 75, in parse
return GenericASTBuilder.parse(self, tokens)
File "/usr/local/lib/python2.7/dist-packages/pyraf/generic.py", line 296, in parse
self.error(tokens[i-1])
File "/usr/local/lib/python2.7/dist-packages/pyraf/clparse.py", line 94, in error
raise SyntaxError(errmsg)
SyntaxError: CL syntax error at `if' (file "/home/mehmet/login.cl", line 4)
Any idea?
I had same problem and it just turned out to be a language problem.
I had a Trukish ubuntu OS and I was getting PyRAF error when there were login.cl file.