View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

PyRAF doCmdline fail on startup

aeschneider714 wrote on Oct 16, 2017


Hi all,

I have been trying to figure this one out all weekend, but I can't seem to find a similar error online. I have the anaconda environment with the legacy IRAF/PyRAF installation. IRAF works perfectly fine and I have installed iraf-all and pyraf-all as well as stsci. However, whenever I try to open PyRAF (same error no matter where I open from) I get the following:

Traceback (most recent call last):

File "/Users/Allie/anaconda2/envs/IRAF/bin/PyRAF", line 4, in

__import__('pkg_resources').run_script('pyraf==2.2.dev0', 'pyraf')

File "/Users/Allie/anaconda2/envs/IRAF/lib/python2.7/site-packages/pkg_resources/__init__.py", line 748, in run_script

self.require(requires)[0].run_script(script_name, ns)

File "/Users/Allie/anaconda2/envs/IRAF/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1517, in run_script

exec(code, namespace, namespace)

File "/Users/Allie/anaconda2/envs/IRAF/lib/python2.7/site-packages/pyraf-2.2.dev0-py2.7-macosx-10.7-x86_64.egg-info/scripts/pyraf", line 93, in

from pyraf import doCmdline, _use_ipython_shell, runCmd, __version__

ImportError: cannot import name doCmdline

Any help or advice would be greatly appreciated! Thanks!

Mike Fitzpatrick wrote on Oct 16, 2017


If you don't get a response here you might also write to the STScI Help Desk (help@stsci.edu) since they maintain pyraf. If you're using an older version of astroconda/ureka then an update might help.

Last post on Oct 16, 2017