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
please make a new release, it's fixed in HEAD 653c82c
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."
The text was updated successfully, but these errors were encountered:
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
from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
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:
# package is not installed version = None
if django.VERSION <= (3, 2):
default_app_config = 'formtools.apps.FormToolsConfig'
please make a new release, it's fixed in HEAD 653c82c
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."
The text was updated successfully, but these errors were encountered: