Welcome to iraf.net Saturday, April 20 2024 @ 01:04 PM GMT


 Forum Index > Help Desk > Python New Topic Post Reply
 PyRaf wont open in side login.cl
   
mshemuni
 08/19/2014 08:01PM (Read 2501 times)  
+----
Newbie

Status: offline


Registered: 03/11/2014
Posts: 7
I 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? Frown

 
Profile Email
 Quote
fitz
 08/20/2014 03:53AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Your question should be forwarded to the STScI helpdesk (help@stsci.edu) since they are responsible for PyRAF support

 
Profile Email
 Quote
mshemuni
 10/29/2016 06:52PM  
+----
Newbie

Status: offline


Registered: 03/11/2014
Posts: 7
Quote by: mshemuni

I 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? Frown



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.
So just they to unset language before using pyraf.

PHP Formatted Code
unset LANG
pyraf

 
Profile Email
 Quote
   
Content generated in: 0.15 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login