View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

TABLES/STSDAS 3.6 and STSCI_Python 2.4 on Ubuntu 7.04

fgrise wrote on May 05, 2007

I tried to install Iraf and these external packages since a few hours and it does not work.
I began with installing Iraf 2.12a and now 2.13-Beta2 (just to see if it was related to Iraf version) and both are working fine.
Then I installed TABLES + STSDAS v3.6 and again, it appears to working as it should. The only problem was when I compile the python code with
python python/compileall.py ./python/*
where some modules can't be listed (and I suppose now that problems come from there).

Here the supposed errors :

Can't list ./python/compileall.py
Listing ./python/compileall.pyc ...
Can't list ./python/compileall.pyc
Listing ./python/rnlincor.py ...
Can't list ./python/rnlincor.py
Listing ./python/rnlincor.pyc ...
Can't list ./python/rnlincor.pyc
Listing ./python/sexcatalog.py ...
Can't list ./python/sexcatalog.py
Listing ./python/sexcatalog.pyc ...
Can't list ./python/sexcatalog.pyc
Listing ./python/sextractor.py ...
Can't list ./python/sextractor.py
Listing ./python/sextractor.pyc ...
Can't list ./python/sextractor.pyc
Listing ./python/tran.py ...
Can't list ./python/tran.py
Listing ./python/tran.pyc ...
Can't list ./python/tran.pyc
Listing ./python/tweak.py ...
Can't list ./python/tweak.py
Listing ./python/tweak.pyc ...
Can't list ./python/tweak.pyc
Listing ./python/upincd.py ...
Can't list ./python/upincd.py
Listing ./python/upincd.pyc ...
Can't list ./python/upincd.pyc

After that, installation of STSCI_Python v2.4 runs smoothly, with no errors.
Pyraf works fine except for the Python related modules, like Multidrizzle .
Here the error messages when I try to go to stsdas.analysis.dither :

Traceback (innermost last):
File "<CL script CL1>", line 1, in <module>
iraf.dither(_save=1)
File "<CL script analysis.dither>", line 94, in dither
PkgBinary=PkgBinary)
File "/iraf/packages/stsdas/pkg/analysis/dither/tran_iraf.py", line 7, in <module>
import tran
File "./python/tran.py", line 83, in <module>
import pydrizzle
File "/usr/lib/python2.5/site-packages/pydrizzle/__init__.py", line 7, in <module>
import arrdriz
ImportError: /usr/lib/libf2c.so.2: undefined symbol: MAIN__

So it appears to be related with import problems, although everything seems to be correctly installed.

If someone has an idea, it would be very appreciable.

Jacob Albretsen wrote on May 05, 2007

You are not alone, I have the same problem with stsci_python 2.4 in Ubuntu 7.04. I emailed their help desk and they are baffled as well. My initial guess is the version of python that comes with 7.04.

fgrise wrote on May 05, 2007

Finally, I found the problem.
The fact is when you install the python packages with "python setup.py install --with-f2c=<path_to_f2c>", it does not install the packages present in the subfolders.

You have to go inside each subfolder and install each module ... and it works.
I use Multidrizzle and it works fine !

Paul Kerry wrote on May 05, 2007

I had the same /usr/lib/libf2c.so.2 problem on a x86 debian etch system using iraf 2.13-BETA2, TABLES Version 3.7, STSDAS Version 3.7 and STSCI PYTHON 2.5

I found that using the system libf2c in /usr/lib from the libf2c2 package caused the problem.

After I downloaded and installed libf2c from
http://www.stsci.edu/resources/software_hardware/pyraf/support_stsci_python
everything worked perfectly

BTW : I ignored the "Can't list..." lines.

Cheers
Paul

zabot wrote on May 05, 2007

I had the same problem with iraf 2.14 and stsdas 3.8 on kubuntu.

I couldn't solve the problem with fgrise "solution".

When I load hst_calib I get:
stsdas> hst_calib
Warning: package `synphot' includes Python tasks that require PyRAF

But I have pyraf on my system!
Does anyone have an idea?

Thanks,
Alexandre

Last post on May 05, 2007