question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

astropy.wcs incompatible with wcslib 6.3

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
privongcommented, Aug 13, 2019

@nden The Arch package manager indicates that wcslib depends on cfitsio, so that dependency should be satisfied.

$ pacman -Qi wcslib
Name            : wcslib
Version         : 6.3-1
Description     : A C library that implements the 'World Coordinate System' (WCS) standard in FITS
[...]
Depends On      : cfitsio
[...]
1reaction
jhunkelercommented, Aug 13, 2019

Thanks! I was completely baffled… I’m not sure if the wcslib maintainer needs a ping.

  • --use-system-cfitsio links the FITS module against libcfitsio
  • --use-system-wcslib links the WCS module against libwcs, and not libcfitsio.

In this case it feels like astropy/wcs/setup_package.py needs to be updated to link to cfitsio.

# Might be nothing more than
cfg['libraries'] = ['cfitsio']
Read more comments on GitHub >

github_iconTop Results From Across the Web

WCS — Astropy v5.2
A Wcsprm object to perform the basic wcslib WCS transformation. world_axis_names ... Inconsistent or unrecognized coordinate axis types.
Read more >
Source code for astropy.wcs.wcs
Wcsprm `: Is a direct wrapper of the core WCS # functionality in `wcslib`_. ... InconsistentAxisTypesError Inconsistent or unrecognized coordinate axis types ...
Read more >
World Coordinate System (astropy.wcs)
World Coordinate Systems (WCSs) describe the geometric transformations between one set of coordinates and another. A common application is to map the pixels...
Read more >
astropy.wcs History
Builds on Microsoft Windows without severely patching wcslib. Lots of new unit tests. pywcs will now run without pyfits , though the SIP...
Read more >
Legacy Interface - astropy.wcs API
Core WCS, as defined in the FITS WCS standard, based on Mark Calabretta's wcslib. (Also includes TPV and TPD distortion, but not SIP...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found