astropy: astropy.wcs incompatible with wcslib 6.3
As mentioned by @privong in issue #9018, there is an error on import with astropy.wcs with wcslib version 6.3 and astropy 3.2.1. The backtrace is the following:
/usr/lib/python3.7/site-packages/astropy/wcs/__init__.py in <module>
24 """
25
---> 26 from .wcs import *
27 from . import utils
28
/usr/lib/python3.7/site-packages/astropy/wcs/wcs.py in <module>
47 from astropy.io import fits
48 from . import docstrings
---> 49 from . import _wcs
50
51 from astropy.utils.compat import possible_filename
ImportError: /usr/lib/libwcs.so.6: undefined symbol: fits_read_wcstab
Thanks!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (10 by maintainers)
@nden The Arch package manager indicates that
wcslibdepends oncfitsio, so that dependency should be satisfied.Thanks! I was completely baffled… I’m not sure if the wcslib maintainer needs a ping.
--use-system-cfitsiolinks the FITS module againstlibcfitsio--use-system-wcsliblinks the WCS module againstlibwcs, and notlibcfitsio.In this case it feels like
astropy/wcs/setup_package.pyneeds to be updated to link tocfitsio.(If this is Arch Linux) I think this might be a bug in the
wcslibpackage. It should not be defining afits_read_wcstabsymbol inlibwcs.soat all whenlibcfitsiois detected by theconfigurescripthttps://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/wcslib
I can’t reproduce the missing symbol behavior when I build
cfitsioandwcslibfrom source. However,I wonder if the
PKGBUILDshould have explicitly passed--with-cfitsio[lib|inc]=instead of lettingpkg-configdo it.