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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
python -m pip install scratchattach --break-system-packages --upgrade |
Beta Was this translation helpful? Give feedback.
-
That could work too if you installed python using apt |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
install portainer on your pi and dockerize the app. I can help you with it on discord if you want. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Why not just install it normally? |
Beta Was this translation helpful? Give feedback.
-
That violates PEP |
Beta Was this translation helpful? Give feedback.
-
At least just make a simple dockerfile it can't be that hard |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
scratchattach has dependencies like requests which have dependencies that might mix up with system dependencies, especially on a bloated system like PiOS |
Beta Was this translation helpful? Give feedback.
-
Making a dockerfile is easy, just look it up on youtube if it is *that* hard |
Beta Was this translation helpful? Give feedback.
-
bump i need help too |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.