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

NaMaster installation CFITSIO issue #206

Open
JamesAmato opened this issue Aug 9, 2024 · 0 comments
Open

NaMaster installation CFITSIO issue #206

JamesAmato opened this issue Aug 9, 2024 · 0 comments

Comments

@JamesAmato
Copy link

I'm trying to set up NaMaster to be installed as part of a pyproject.toml. It's unable to find CFITSIO. I'm trying to get this set up as a dependency for another library, so I'd like to get the installation simplified.

I am able to install it using conda in a fresh environment (note that it reports being version 2.2.1).

I use:

`[tool.poetry]
name = "test_install_namaster"
version = "0.0.0"
description = ""
authors = ["JamesAmato [email protected]"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
healpy = "^1.17.1"

[tool.poetry.group.dev.dependencies]
pytest = "^8.0.1"
pylint = "^3.0.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"`

This works just fine. Note that healpy is in there, so CFITSIO should be installed.

When I try to poetry add pymaster or poetry add pymaster=2.2.1, both fail, with:
" checking for CFITSIO... no
checking for ffgnrwll in -lcfitsio... no
configure: error: could not find the cfitsio library
ERROR: failed to configure HEALPix. Check CFITSIO is installed and reachable.
error: Failed to install libchealpix."

At the end is the message: "Note: This error originates from the build backend, and is likely not a problem with poetry but with pymaster (2.2.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pymaster (==2.2.1)"'."

Running that command also fails, with similar results.

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

1 participant