Closed ideesnoires closed 8 months ago
This issue is with Python 3.12 and I suggest it should be fixed in no time because some projects using django-formtools are broken after system upgrade (Fedora 39). I guess all other distros that switched to Python 3.12 are having this issue as well.
Error:
venv/lib/python3.12/site-packages/formtools/init.py", line 2, in
Where pkg_resources is called: "venv/lib/python3.12/site-packages/formtools/init.py",
import django from pkg_resources import DistributionNotFound, get_distribution
try: version = get_distribution("django-formtools").version except DistributionNotFound:
__version__ = None
if django.VERSION <= (3, 2): default_app_config = 'formtools.apps.FormToolsConfig'
Closing as it's fixed in head. #253, then #254 will produce a new release.
please make a new release, it's fixed in HEAD https://github.com/jazzband/django-formtools/commit/653c82cf27d5f21c3691efded466ac70659ff1c1
here the python docs: https://docs.python.org/3/whatsnew/3.12.html#summary-release-highlights "Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment."