As documented [here](https://github.com/astropy/astropy/pull/17046), the function astropy.coordinates.get_moon() is deprecated in astropy 7.0, and replaced by coordinates.get_body("moon"). This is likely only an issue for brand new installs, but may be an issue in the future.