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

JWST notebook photoutils.patch error #66

Open
SebastianPrehn opened this issue Feb 2, 2024 · 0 comments
Open

JWST notebook photoutils.patch error #66

SebastianPrehn opened this issue Feb 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SebastianPrehn
Copy link
Collaborator

photoutils.patch error

When building the dev build of the jwst-notebook, the build fails with the following relevant error code:

7.642     from .base import BaseDifferential, BaseRepresentation, BaseRepresentationOrDifferential
7.642   File "/opt/conda/envs/python3/lib/python3.10/site-packages/astropy/coordinates/representation/base.py", line 12, in <module>
7.642     from astropy.coordinates.angles import Angle
7.642   File "/opt/conda/envs/python3/lib/python3.10/site-packages/astropy/coordinates/angles/__init__.py", line 11, in <module>
7.642     from .utils import *
7.642   File "/opt/conda/envs/python3/lib/python3.10/site-packages/astropy/coordinates/angles/utils.py", line 21, in <module>
7.642     from astropy.coordinates.representation import (
7.642 ImportError: cannot import name 'SphericalRepresentation' from partially initialized module 'astropy.coordinates.representation' (most likely due to a circular import) (/opt/conda/envs/python3/lib/python3.10/site-packages/astropy/coordinates/representation/__init__.py)

starting on this line in the code

RUN mamba run -n python3 python /tmp/photutils.patch \

@gbrammer You initially created this Notebook with the file photoutils.patch and I wanted to ask if you had any idea for a fix to this, as we would like to be able to use the new JupyterLab 4.0.11 introduced in eac4bce for its security fixes.

Possible solutions

When looking at photoutils install, it recommends conda install -c conda-forge photutils which could be a potential solution, unless the patch does something specific and is not just legacy at this point?

@SebastianPrehn SebastianPrehn added the bug Something isn't working label Feb 2, 2024
@SebastianPrehn SebastianPrehn self-assigned this Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant