[Bug]: setuptools no longer bundled with Python
Opened this issue · 1 comments
twonfi commented
Duplicate Issues
- There are no existing posts relating to my problem
- There are existing posts relating to my problem, but the solution given, doesn't work for me.
What happened?
As of Python 3.12, setuptools (pkg_resources
) was no longer bundled (see python/cpython#95299) and needs to be manually installed using pip.
The Python script tries to import pkg_resources
(included in setuptools). However, it failed as setuptools is no longer bundled with Python 3.12. After installing setuptools, the script works as usual.
Release version
v2.17.0
Steps to reproduce
- Install requirements
pip3 install -r requirements.txt
- Run the script
python3 YTSpammerPurge.py
- Shows error that
pkg_resources
was not found - Install setuptools
pip3 install setuptools
- Rerun
python3 YTSpammerPurge.py
- Works; shows login screen
What platform are you seeing this problem on?
MacOS
Relevant log output
No response
Screenshots
No response
PacoBell commented
Yup, I ran into this bug even on Python 3.11. Install script should really check for this and automatically install.