How would one go installing this on linux
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
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
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
python -m pip install scratchattach --break-system-packages --upgrade
pip install scratchattach --break-system-packages --upgrade
That could work too if you installed python using apt
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
Why shouldn't it just work using pip normally?
Zaid @.***> schrieb am Sa., 24. Mai 2025, 10:16:
zaid1442011 left a comment (TimMcCool/scratchattach#375) https://github.com/TimMcCool/scratchattach/issues/375#issuecomment-2906618817
The best way to do it without messing with system packages is to make a python virtual environment https://www.w3schools.com/python/python_virtualenv.asp for the script and install scratchattach from there by:
pip install scratchattach
— Reply to this email directly, view it on GitHub https://github.com/TimMcCool/scratchattach/issues/375#issuecomment-2906618817, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZUPBEDABCO6T7XZIPD3AATGFAVCNFSM6AAAAAB2PYM66OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBWGYYTQOBRG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
install portainer on your pi and dockerize the app. I can help you with it on discord if you want.
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.
Why not just install it normally?
--break-system-packages
That violates PEP
At least just make a simple dockerfile it can't be that hard
--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
scratchattach has dependencies like requests which have dependencies that might mix up with system dependencies, especially on a bloated system like PiOS
Making a dockerfile is easy, just look it up on youtube if it is *that* hard
bump i need help too
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