dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.26k stars 472 forks source link

allow offline install from local github repositories for local installation and network resource management #497

Open MarioOrtegon opened 1 month ago

MarioOrtegon commented 1 month ago

Is your feature request related to a problem? Please describe

It's related to github's routing issue of August 14th 2024, I kindly request to have another advanced option for local installation in a user configurable path for pointing to the right github DB. current error details below: image

Describe the solution you'd like

allow user to type local repository in advanced section to install dependencies locally offline

Describe alternatives you've considered

I've tried installing klipper from local repository but don't know how to properly create it's enviroment so kiauh can still use it once github is online or device is back on network access.

Additional information

error log:

/=======================================================\ | ~~~~~ [ KIAUH ] ~~~~~ | | Klipper Installation And Update Helper | | ~~~~~~~~~ | \=======================================================/

Initializing Klipper installation ...
/=======================================================\ Please select your preferred Python version. The recommended version is Python 3.x.
1) [Python 3.x] (recommended)
2) [Python 2.7] (legacy)
-------------------------------------------------------
B) « Back

\=======================================================/

Select Python version: 1

[➔] Python 3.x

/=======================================================\ Please select the number of Klipper instances to set up. The number of Klipper instances will determine the amount of printers you can run from this host.
WARNING:
Setting up too many instances may crash your system.
-------------------------------------------------------
B) « Back

\=======================================================/

Number of Klipper instances to set up: 1

[➔] Instance count: 1

Installing single Klipper instance ...
Checking for the following dependencies:

● git [✓ OK] Dependencies already met!

Cloning Klipper from https://github.com/Klipper3d/klipper ...

Cloning into '/home/mayos/klipper'... remote: Enumerating objects: 64931, done. remote: Counting objects: 100% (58/58), done. remote: Compressing objects: 100% (26/26), done. error: RPC failed; curl 56 Recv failure: Connection reset by peer error: 3957 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output

=======================================================

Cloning Klipper from https://github.com/Klipper3d/klipper failed!

=======================================================

mayos@SidewinderX1:~ $pip install fuck (o)bligatory online dependencies

MarioOrtegon commented 1 month ago

a wiki link from the kiauh installation page could help to share current implementation knowledge, explain what each user interface option actually does and hopefully we can also remove printer/enviroment individually this would improve future development implementation effort/efficiency/outreach (too much to ask?)

dw-0 commented 1 month ago

Hi,

thanks for the request. FWIW i don't see it as KIAUHs scope for mitigating Github issues of any kind. There are no such things as local github repositories, but i think i get what you mean and you simply mean local git repositories, in other terms: git repos that have been cloned previously and still exist on your filesystem?

hopefully we can also remove printer/enviroment individually

This is actually something i have developed for the upcoming KIAUH v6 release. You will be able to select which components to remove during removal. Here is a sneak peek on how the Klipper remove menu will look like. Other remove menus will look similar: image

I think technically it could be possible to re-install e.g. Klipper from scratch even if there is no internet connection. Provided that all required resources are cached (Python packages) and local git repositories still exist at their expected location with their expected names. I will have a look at it, but this will not be anything released for KIAUHs current v5.

MarioOrtegon commented 1 month ago

Hi thank you for the quick reply and yes I do have all dependencies updated on RPi and cloned klipper repo on it from another pc so some terminal screenshot examples could be useful in the wiki if someone wants to try manually on v5/6. Thank you I wasn't aware of that new implementation but look forward using it, reduces dependency on terminal/ssh. Thank you for looking into it, hopefully it's not too cumbersome to adapt since that way we could modify cfg files before installation so kiauh knows which custom configuration to use from its own interface, I know it's easy to dream and ask for new features but it's a very reliable essential 3d tool so hope you don't exceed your self too much and have a nice evening

On Thu, Aug 15, 2024, 1:16 PM dw-0 @.***> wrote:

Hi,

thanks for the request. FWIW i don't see it as KIAUHs scope for mitigating Github issues of any kind. There are no such things as local github repositories, but i think i get what you mean and you simply mean local git repositories, in other terms: git repos that have been cloned previously and still exist on your filesystem?

hopefully we can also remove printer/enviroment individually

This is actually something i have developed for the upcoming KIAUH v6 release. You will be able to select which components to remove during removal. Here is a sneak peek on how the Klipper remove menu will look like. Other remove menus will look similar: image.png (view on web) https://github.com/user-attachments/assets/667e6c8a-0b2f-4f84-853e-5be6155d30e5

I think technically it could be possible to re-install e.g. Klipper from scratch even if there is no internet connection. Provided that all required resources are cached (Python packages) and local git repositories still exist at their expected location with their expected names. I will have a look at it, but this will not be anything released for KIAUHs current v5.

— Reply to this email directly, view it on GitHub https://github.com/dw-0/kiauh/issues/497#issuecomment-2291757154, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSNZ7FNONHXU7OZLQFN2V3ZRTPARAVCNFSM6AAAAABMRUNHNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJRG42TOMJVGQ . You are receiving this because you authored the thread.Message ID: @.***>