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
This issue is with Python 3.12 and I suggest it should be fixed in no time because some projects using django-widget-tweaks 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/widget_tweaks/init.py", line 1, in
from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'
Where pkg_resources is called:
"venv/lib/python3.12/site-packages/widget_tweaks/init.py"
from pkg_resources import get_distribution, DistributionNotFound
try: version = get_distribution("django-widget-tweaks").version
except DistributionNotFound:
# package is not installed version = None
The text was updated successfully, but these errors were encountered:
easy_install, pkg_resources, setuptools and distutils are no longer provided by default in environments created with venv or bootstrapped with ensurepip, since they are part of the setuptools package. For projects relying on these at runtime, the setuptools project should be declared as a dependency and installed separately (typically, using pip).
Looks like this was fixed in #135 and released in 1.5.0. What version of django-widget-tweaks are you using?
This issue is with Python 3.12 and I suggest it should be fixed in no time because some projects using django-widget-tweaks 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/widget_tweaks/init.py", line 1, in
from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'
Where pkg_resources is called:
"venv/lib/python3.12/site-packages/widget_tweaks/init.py"
from pkg_resources import get_distribution, DistributionNotFound
try:
version = get_distribution("django-widget-tweaks").version
except DistributionNotFound:
# package is not installed
version = None
The text was updated successfully, but these errors were encountered: