First, thank you very much for your detailed bug report and your
analysis!
The problem here is that by default, the NOAO tasks are not loaded. This
is also not done in the original IRAF login.cl script. Specifically,
your script contains the following lines at the end:
print (" The following commands or packages are currently
defined:\n")
# noao main packages:
astutil
imred
onedspec
twodspec
# noao.imred main packages:
ccdred
crutil
generic
keep
while the original login.cl (see f.e.
https://github.com/iraf/iraf-v216/blob/master/unix/hlib/login.cl#L178-L181)
is
print (" The following commands or packages are currently
defined:\n")
keep
With adding these lines to /etc/iraf/login.cl, the `import` Python
statements would run -- however this is your local change, not a common
bug.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768907
Title:
Error when trying to import an IRAF task in Python
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyraf/+bug/1768907/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs