ThioJoe / YT-Spammer-Purge

Allows you easily scan for and delete scam comments using several methods.
GNU General Public License v3.0
4.52k stars 391 forks source link

[Bug]: setuptools no longer bundled with Python #1088

Open 2NumForIce opened 6 months ago

2NumForIce commented 6 months ago

Duplicate Issues

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

  1. Install requirements pip3 install -r requirements.txt
  2. Run the script python3 YTSpammerPurge.py
  3. Shows error that pkg_resources was not found
  4. Install setuptools pip3 install setuptools
  5. Rerun python3 YTSpammerPurge.py
  6. Works; shows login screen

What platform are you seeing this problem on?

MacOS

Relevant log output

No response

Screenshots

No response

PacoBell commented 3 months ago

Yup, I ran into this bug even on Python 3.11. Install script should really check for this and automatically install.