Skip to content

How would one go installing this on linux #375

Closed

Description

@Supremeshiba1717

I want to run a script 24/7 on my raspberry pi 5 and i was wondering how you can get this on raspberry pi OS 64bit

Activity

  1. DagriffpatchfanHosting commented on Apr 7, 2025

    @DagriffpatchfanHosting

    use pip install scratchattach and then create a python file for example script.py. Navigate to its directory then run python3 script.py...I'm assuming you know basic terminal useage? Honestly though, I would reccomend you just go to https://github.com/TimMcCool/scratchattach/wiki/Hosting and get your code hosted for free on someone elses server designed for this

  2. mas6y6 commented on Apr 10, 2025

    @mas6y6

    If you are gonna use a Raspberry Pi for scratchattach you just need to install using pip

    sudo pip install scratchattach -U

    If you don't have Python installed install it using APT

    sudo apt install python3-full

    I am currently on mobile so I cannot type proper code blocks

  3. uukelele commented on Apr 11, 2025

    @uukelele
    Contributor
    python -m pip install scratchattach --break-system-packages --upgrade
  4. mas6y6 commented on Apr 15, 2025

    @mas6y6

    pip install scratchattach --break-system-packages --upgrade

    That could work too if you installed python using apt

  5. zaid4412100 commented on May 24, 2025

    @zaid4412100
    Contributor

    The best way to do it without messing with system packages is to make a python virtual environment for the script and install scratchattach from there by:

    pip install scratchattach
  6. TheCommCraft commented on May 24, 2025

    @TheCommCraft
    Collaborator
  7. LIZARD-OFFICIAL-77 commented on May 24, 2025

    @LIZARD-OFFICIAL-77

    install portainer on your pi and dockerize the app. I can help you with it on discord if you want.

  8. uukelele commented on May 24, 2025

    @uukelele
    Contributor

    install portainer on your pi and dockerize the app. I can help you with it on discord if you want.

    that's way too much effort for a simple python library installation.

    like I said,

    python -m pip install scratchattach --break-system-packages --upgrade

    should work out-of-the-box on raspberry pi OS.

  9. TheCommCraft commented on May 24, 2025

    @TheCommCraft
    Collaborator

    Why not just install it normally?

  10. LIZARD-OFFICIAL-77 commented on May 24, 2025

    @LIZARD-OFFICIAL-77

    --break-system-packages

    That violates PEP

  11. LIZARD-OFFICIAL-77 commented on May 24, 2025

    @LIZARD-OFFICIAL-77

    At least just make a simple dockerfile it can't be that hard

  12. uukelele commented on May 24, 2025

    @uukelele
    Contributor

    --break-system-packages

    That violates PEP

    it's not like scratchattach is a system package or anything. and most people using scratchattach are coming to python for the first time, and I think it'd be easier for them to have the easiest simplest option available

  13. LIZARD-OFFICIAL-77 commented on May 24, 2025

    @LIZARD-OFFICIAL-77

    scratchattach has dependencies like requests which have dependencies that might mix up with system dependencies, especially on a bloated system like PiOS

  14. LIZARD-OFFICIAL-77 commented on May 24, 2025

    @LIZARD-OFFICIAL-77

    Making a dockerfile is easy, just look it up on youtube if it is *that* hard

  15. added
    supportHelp with using scratchattach is requested
    on May 30, 2025
  16. cybersteve547 commented on Jul 6, 2025

    @cybersteve547
    Contributor

    bump i need help too

  17. TheCommCraft commented on Jul 6, 2025

    @TheCommCraft
    Collaborator
    python -m pip install scratchattach
    

    or if that doesn't work

    python -m pip install --break-system-packages scratchattach
    

    or if you want to be safe, use docker

  18. Repository owner locked and limited conversation to collaborators on Jul 6, 2025
  19. converted this issue into a discussion #443 on Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportHelp with using scratchattach is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions