You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PEP 632: Remove the distutils package. See the migration guide for advice replacing the APIs it provided. The third-party Setuptools package continues to provide distutils, if you still require it in Python 3.12 and beyond.
Because of this, I get an error every time I import aplpy. Could you fix this, please?
The text was updated successfully, but these errors were encountered:
Sorry, I should have described the issue better. I am currently running Github actions to test my code, but I get the following error:
/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_local_phot.py:3: in <module>
from hostphot.cutouts import download_images
/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/hostphot/__init__.py:3: in <module>
from . import utils
/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/hostphot/utils.py:10: in <module>
import aplpy
/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/aplpy/__init__.py:14: in <module>
from .core import FITSFigure # noqa
/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/aplpy/core.py:1: in <module>
from distutils import version
E ModuleNotFoundError: No module named 'distutils'
It seems that starting from Python 12, distutils is not supported anymore:
Read What’s New In Python 3.12:
Because of this, I get an error every time I import aplpy. Could you fix this, please?
The text was updated successfully, but these errors were encountered: