With astropy 4.3 the function _find_pkg_data_path was renamed to get_pkg_data_path. Speclite 0.13 uses the old function name and is therefore incompatible with astropy>=4.3. There is a fix for this on the speclite develop branch but this patch has not yet been incorporated into a release. Critically, this incompatibility causes our readthedocs builds to fail and in turn blocks our CI checks. This requires a two stage fix...
[x] Temporarily fix astropy >=4.0, <4.3 to resolve the readthedocs failures and unblock our CI checks
[x] After speclite 0.14 is released revert to astropy>=4 and fix speclite>=0.14
WARNING: examples/galaxies/plot_photometry.py failed to execute correctly: Traceback (most recent call last):
File "examples/galaxies/plot_photometry.py", line 65, in <module>
pipeline.execute()
File "skypy/pipeline/_pipeline.py", line 191, in execute
self.state[table][column] = self.evaluate(settings)
File "skypy/pipeline/_pipeline.py", line 264, in evaluate
return value.evaluate(self)
File "skypy/pipeline/_items.py", line 93, in evaluate
return self.function(*args, **kwargs)
File "skypy/galaxies/spectrum.py", line 143, in stellar_mass
Mt = self.absolute_magnitudes(coefficients, filter)
File "skypy/utils/photometry.py", line 191, in absolute_magnitudes
M = mag_ab(self.wavelength, self.templates, filters, coefficients=coefficients)
File "skypy/utils/photometry.py", line 92, in mag_ab
filters = load_filters(*filters)
File "speclite/filters.py", line 1807, in load_filters
filters_path = astropy.utils.data._find_pkg_data_path('data/filters/')
AttributeError: module 'astropy.utils.data' has no attribute '_find_pkg_data_path'
With astropy 4.3 the function
_find_pkg_data_path
was renamed toget_pkg_data_path
. Speclite 0.13 uses the old function name and is therefore incompatible with astropy>=4.3. There is a fix for this on the speclite develop branch but this patch has not yet been incorporated into a release. Critically, this incompatibility causes our readthedocs builds to fail and in turn blocks our CI checks. This requires a two stage fix...astropy >=4.0, <4.3
to resolve the readthedocs failures and unblock our CI checksastropy>=4
and fixspeclite>=0.14
To Reproduce