Your iraf and IRAFARCH environment variables
Posted: Wed May 18, 2011 1:27 pm
Hi,
I am trying to run PyRaf and get this error when I do
Your iraf and IRAFARCH environment variables are not defined and could not
be determined from /usr/local/bin/cl. Before starting pyraf, define them
by doing (for example)
setenv iraf /usr/local/iraf/
setenv IRAFARCH redhat
at the Unix command line. The values will depend on your IRAF installation.
/usr/local/lib/python2.6/dist-packages/pyraf/irafimport.py:65: RuntimeWarning: Parent module 'pyraf' not found while handling absolute import
return _originalImport(name, globals, locals, fromlist, level)
I guess what I have to do is define my iraf and IRAFARCH variables, but I have no idea how to go about that. Any and all help would be appreciated.
thanks
I am trying to run PyRaf and get this error when I do
Your iraf and IRAFARCH environment variables are not defined and could not
be determined from /usr/local/bin/cl. Before starting pyraf, define them
by doing (for example)
setenv iraf /usr/local/iraf/
setenv IRAFARCH redhat
at the Unix command line. The values will depend on your IRAF installation.
/usr/local/lib/python2.6/dist-packages/pyraf/irafimport.py:65: RuntimeWarning: Parent module 'pyraf' not found while handling absolute import
return _originalImport(name, globals, locals, fromlist, level)
I guess what I have to do is define my iraf and IRAFARCH variables, but I have no idea how to go about that. Any and all help would be appreciated.
thanks