ThioJoe / YT-Spammer-Purge

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

[Bug]: problem running script #1096

Open Mrnermaler opened 7 months ago

Mrnermaler commented 7 months ago

Duplicate Issues

What happened?

i did ./install.sh them it gave me this error We will now install YT-Spammer-Purge. Continue?

Installing. YT-Spammer-Purge has a few OS-Specific requirements that you will need to install. Reading package lists... Done Building dependency tree... Done Reading state information... Done python3 is already the newest version (3.11.2-1). python3-dev is already the newest version (3.11.2-1). python3-tk is already the newest version (3.11.2-2). python3-pip is already the newest version (23.0.1+dfsg-1ubuntu0.2). git is already the newest version (1:2.39.2-1ubuntu1.1). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

We are now going to download the code for YT-Spammer-Purge. fatal: destination path 'YT-Spammer-Purge' already exists and is not an empty directory.

error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. i know that thiojoe doent use liunx and uses windows but my computer doesnt have any drivers for the trackpad or the usb 1.1 port so windows doesnt work on my system debian doesnt work ethier. i tried reinstalling (debian needs custom kerrnal arccording to https://docs.chrultrabook.com/docs/installing/known-issues.html)

Release version

2.17.1

Steps to reproduce

  1. open terminal
  2. then run curl https://raw.githubusercontent.com/ThioJoe/YT-Spammer-Purge/main/install.sh -o install.sh
  3. then lastly ./install.sh

What platform are you seeing this problem on?

Linux (can also be ChromeOS)

Relevant log output

We are now going to download the code for YT-Spammer-Purge.
fatal: destination path 'YT-Spammer-Purge' already exists and is not an empty directory.
--------------------------
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Screenshots

No response

Mrnermaler commented 7 months ago

oh yeah im on ubuntu 23.04 (lunar lobster) i think im the resson that when you pick liunx it says also could be chrome os because i tried to install on chrome os on my samsung chromebook 3

Firecul commented 7 months ago

What happened after trying to install the python packages manually?

Mrnermaler commented 7 months ago

sudo apt install python3-full [sudo] password for user Reading package lists... Done Building dependency tree... Done Reading state information... Done python3-full is already the newest version (3.11.2-1). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

ThioJoe commented 7 months ago

Try just downloading the repo as a zip file, extracting it, and running YTSpammerPurge.py with python. Assuming you already have all the dependencies it should work, since the program is portable and doesn't technically need to be installed.