16

My friend just shared the existence of this software with me, and it looks perfect for me. His setup uses docker though, and mine doesn't. The non-docker instructions seem simple enough, but I can't figure out how to install the requirements. The "pip install" complains and says I should use apt, but I can't find most of those requirements in my sources. For example "python3-verboselogs" isn't found. Can someone help? I'd love to get this running!

you are viewing a single comment's thread
view the rest of the comments
[-] just_another_person@lemmy.world 3 points 1 week ago

This happens inside whatever directory you have Decluttar in, and then the local venv runs decluttar

[-] electric_nan@lemmy.ml 2 points 1 week ago

I don't understand a bit of this, but I got everything installed and running. Seems I have to 'activate' the venv and run the script from within it. Not sure how this works with the script auto running itself periodically, but I guess I will find out! Thanks for pointing me in the right direction.

[-] ikidd@lemmy.world 4 points 1 week ago

https://stackoverflow.com/questions/3287038/cron-and-virtualenv

I haven't looked at the particulars of this applications, but if you path the python binary you use to run the application, it should use the environment that's with it, without being activated. Activate just prepends the path for that venv to every command you give from then on when you're working in a shell. And as noted in there, make sure you specify /bin/bash as your shell in cronjobs since it uses sh by default so you might run into issues in that context.

[-] tofubl@discuss.tchncs.de 3 points 1 week ago

A virtual environment is just a copy of the python and pip binaries. When you activate the venv, the venv dirs temporarily get added to your path, so your regular python alias points to the binary in the venv (run which python with venv active to verify). Pip will install modules to a subdir of your venv. It basically works like npm and the node_modules dir.

[-] tofubl@discuss.tchncs.de 3 points 1 week ago

On second read, maybe you already knew that.

this post was submitted on 27 Jan 2025
16 points (83.3% liked)

Selfhosted

41868 readers
330 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS