How would one go installing this on linux #443
|
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 |
Replies: 17 comments
|
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 -UIf you don't have Python installed install it using APT sudo apt install python3-fullI am currently on mobile so I cannot type proper code blocks |
python -m 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)
<#375 (comment)>
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
<#375 (comment)>,
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. |
that's way too much effort for a simple python library installation. like I said, python -m pip install scratchattach --break-system-packages --upgradeshould work out-of-the-box on raspberry pi OS. |
|
Why not just install it normally? |
That violates PEP |
|
At least just make a simple dockerfile it can't be that hard |
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 |
or if that doesn't work or if you want to be safe, use docker. You can find guides on how to use it online. |
|
Yes. Dockerizing it will not only comply with PEP, but also teach you a great tool like docker. It isnt too much effort. You are learning. |
or if that doesn't work
or if you want to be safe, use docker. You can find guides on how to use it online.