Skip to content

Commit a4476d1

Browse files
committed
fix: add setuptools for Python 3.12+ compatibility
Python 3.12+ no longer includes setuptools by default, but flask-security 3.0.0 imports pkg_resources which requires it. This fixes the error: ModuleNotFoundError: No module named 'pkg_resources'
1 parent 78d4762 commit a4476d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

requirements-webapp.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
setuptools>=65.5.0 # Required for pkg_resources in Python 3.12+ (no longer included by default)
12
Babel==2.14.0 # 2.14.0+ required for Python 3.13 (removed cgi module dependency)
23
Flask-BabelEx==0.9.4
34
pytz # Required by Flask-BabelEx (no longer a transitive dep of Babel 2.14+)

0 commit comments

Comments
 (0)