Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPI macOS wheel for 3.4.0 seems broken #222

Open
ludwigschwardt opened this issue Jun 24, 2021 · 3 comments
Open

PyPI macOS wheel for 3.4.0 seems broken #222

ludwigschwardt opened this issue Jun 24, 2021 · 3 comments
Assignees

Comments

@ludwigschwardt
Copy link
Contributor

ludwigschwardt commented Jun 24, 2021

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
Copy link
Member

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

@gijzelaerr gijzelaerr reopened this Jul 5, 2021
@keflavich
Copy link

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
Copy link
Contributor Author

ludwigschwardt commented Aug 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants