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

photutils 1.12 not valid in a python 3.10 slim docker environment #1740

Open
havok2063 opened this issue May 16, 2024 · 1 comment
Open

photutils 1.12 not valid in a python 3.10 slim docker environment #1740

havok2063 opened this issue May 16, 2024 · 1 comment

Comments

@havok2063
Copy link

I am setting up a docker container using the python:3.10-slim image. photutils 1.12 is getting installed as a dependency through jdaviz. The installation fails:

Collecting photutils==1.12
  Downloading photutils-1.12.0.tar.gz (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 10.9 MB/s eta 0:00:00
ERROR: photutils==1.12 from https://files.pythonhosted.org/packages/10/b6/2ecd1ddebf269aa78103959a99ebb2c2ca9070f392cf10ac767fc4176b2a/photutils-1.12.0.tar.gz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

Manually installing photutils=1.11 seems to works fine. Is the package build wonky for 1.12, or is there something weird going on in my container setup?

@larrybradley
Copy link
Member

larrybradley commented May 17, 2024

@havok2063 Unfortunately there is something "different" about the PyPI source tarball (there was an odd setuptools issue during that release). The contents of the file are perfectly fine, but for some unknown reason you cannot run pip install photutils-1.12.0.tar.gz directly on this file. If you untar the file and then install from the unpacked directly it works fine, e.g., pip install ./photutils-1.12.0.

I also added a source tarball on the GitHub release page that does work properly with pip install:
https://github.com/astropy/photutils/releases/download/1.12.0/photutils-1.12.0.tar.gz

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

No branches or pull requests

2 participants