Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarioOrtegon opened this issue Aug 15, 2024 · 9 comments

Comments

@MarioOrtegon
Copy link

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
Copy link
Author

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
Copy link
Owner

dw-0 commented Aug 15, 2024

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
Copy link
Author

MarioOrtegon commented Aug 15, 2024 via email

@Hans-KK

This comment was marked as off-topic.

@dw-0

This comment was marked as off-topic.

@Hans-KK

This comment was marked as off-topic.

@kerry-c-young
Copy link

I've had this issue too. For some reason I can't pull the repo successfully. What I ended up doing was downloading the zipped repo, unzipping into /home/user/klipper and running the installation again. When it gives you an option to overwrite the directory, just say no and it will skip the clone and continue on.
Hope this helps

@wang098138

This comment was marked as off-topic.

@sierrapappabravo
Copy link

I've had this issue too. For some reason I can't pull the repo successfully. What I ended up doing was downloading the zipped repo, unzipping into /home/user/klipper and running the installation again. When it gives you an option to overwrite the directory, just say no and it will skip the clone and continue on. Hope this helps

Was having the same problem. Your solution worked! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

6 participants