casacore / python-casacore

Python bindings for casacore, a library used in radio astronomy
http://casacore.github.io/python-casacore
GNU Lesser General Public License v3.0
35 stars 22 forks source link

PyPI macOS wheel for 3.4.0 seems broken #222

Open ludwigschwardt opened 3 years ago

ludwigschwardt commented 3 years ago

Aah, the dreaded double nelson! 😜

The python_casacore-3.4.0-cp39-cp39-macosx_10_15_x86_64.whl wheel on PyPI installs fine but any access to the C++ code results in a segfault. Here is a quick check:

from casacore import tables
tables.required_ms_desc('MAIN')

I've verified this on the target system (macOS 10.15.7 and Python 3.9.5) but apparently it also installs and crashes on macOS 11.4.

A workaround is to build from source:

pip3 install python-casacore --no-binary python-casacore

Could we delete the wheel until we can build a better one?

gijzelaerr commented 3 years ago

thanks for reporting this @ludwigschwardt. I've removed python_casacore-3.4.0-cp39-cp39-macosx_10_15_x86_64.whl from pypi.

keflavich commented 3 years ago

Could you guys point to a configuration (e.g., a conda environment) that will enable installation of python-casacore? I've been trying both with and without wheels with no luck. I can post this as a separate issue if preferred.

ludwigschwardt commented 3 years ago

Hi Adam, I maintain a Homebrew tap that builds casacore 3.4.0:

brew tap ska-sa/tap
brew install casacore

There is also a casacore tap that should be equivalent (I tested the former):

brew tap casacore/tap
brew install casacore

After this I installed python-casacore from the source distribution:

pip3 install python-casacore --no-binary python-casacore

This works for me on macOS 10.15.7 + Python 3.9.5.