Skip to content

plot_finder_image() hangs on Mac #620

Description

@RichardGFrench

plot_finder_image() hangs on Mac

I'm running Mac OS Sequoia 15.5, Python3.13, and I've installed the latest version of asrtroplan and astroquery.

I edited /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/astroplan/plots/finder.py line 88 to remove the grid= keyword, which was a known failure mode - see #588:

"In order to use plot_finder_image with Astropy v 6.1.2, Astroquery 0.4.8, and Astroplan 0.11, I had to remove the grid=grid argument in SkyView.get_images in the file finder.py (line 88-89) under astroplan because the get_images function doesn't take a grid parameter. So even though it is by default False in finder.py, astroquery threw an error my way from SkyView/core.py."
"the solution is to change the code line 88 in the finder.py file from:

hdu = SkyView.get_images(position=position, coordinates=coordinates, survey=survey, radius=fov_radius, grid=grid)[0][0]

to:

hdu = SkyView.get_images(position=position, coordinates=coordinates, survey=survey, radius=fov_radius)[0][0]

"

I copied the code from the example given here:

https://astroplan.readthedocs.io/en/latest/tutorials/plots.html#finder-chart-image

The following commands hang:

ipython
Python 3.13.2 (v3.13.2:4f8bb3947cf, Feb 4 2025, 11:51:10) [Clang 15.0.0 (clang-1500.3.9.4)]

from astroplan import FixedTarget
from astroplan.plots import plot_finder_image
import matplotlib.pyplot as plt

messier1 = FixedTarget.from_name("M1")
ax, hdu = plot_finder_image(messier1) <------------ HANGS HERE
plt.tight_layout()
plt.show()
No response.

Using Python 3.9 instead, I got the error message

lib/python3.9/site-packages/urllib3/init.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3/urllib3#3020

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions