kiri: Installation fails on Ubuntu 22.04.

Hi,

I wanted to try Kiri again with the newly tools for KiCad6 but I can’t get past the installation procedure. It always fails while installing the dependencies, specifically plotkicadsh and kicadsch. During the main install it then obviously can’t find plotkicadsh and stops the installation there. Do I have to modify the commands etc. to get it working with KiCad6 on Ubuntu 22.04?

log:

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from https://opam.ocaml.org

<><> Synchronising development packages <><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not synchronize ~/.opam/4.09.1/.opam-switch/sources/plotkicadsch from
        "git+file:///~/.local/share/kiri/submodules/plotkicadsch#HEAD":
        "/usr/bin/git fetch -q" exited with code 128
[plotkicadsch.0.9.0] fetching sources failed: git+file:///~/.local/share/kiri/submodules/plotkicadsch#HEAD
[ERROR] Could not synchronize ~/.opam/4.09.1/.opam-switch/sources/kicadsch from
        "git+file:///~/.local/share/kiri/submodules/plotkicadsch#HEAD":
        "/usr/bin/git fetch -q" exited with code 128
[kicadsch.0.9.0] fetching sources failed: git+file://~/.local/share/kiri/submodules/plotkicadsch#HEAD
[NOTE] Package digestif is already installed (current version is 1.1.2).
[NOTE] Package lwt is already installed (current version is 5.5.0).
[NOTE] Package lwt_ppx is already installed (current version is 2.0.3).
[NOTE] Package cmdliner is already installed (current version is 1.1.1).
[NOTE] Package base64 is already installed (current version is 3.5.0).
[NOTE] Package sha is already installed (current version is 1.15.2).
[NOTE] Package tyxml is already installed (current version is 4.5.0).
[NOTE] Package git-unix is already installed (current version is 3.9.1).
...@...-VirtualBox:~$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/leoheck/kiri/main/install_kiri.sh)"

Installing KiRI

Installation path ~/.local/share
Change it using KIRI_INSTALL_PATH environment variable

Hit ENTER to continue or Ctrl+C to leave.


cp: cannot stat '../kiri': No such file or directory
environment: line 44: cd: ~/.local/share/kiri/submodules/plotkicadsch: No such file or directory

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 70 (45 by maintainers)

Most upvoted comments

yes I saw this while testing. it really helps to keep on overview on the modules. espicially in the way I normally name my files.

In the last days I did not found any more issues so I will close this for now. If I find something more, I will surely come back to you.

Yes, I could figure out exactly what you are saying, in summary, this is happening.

  1. Kicad does not create folders. They have to exist otherwise when you save the project, it is going to throw an error about permissions and not about the existing path. This may not be a bug, but I consider it a bug. Especially because the Error is not that good. Now, this can be easily overcome by creating the folder modules manually before of saving the project.

  2. The new page is created in the place where the parent page is. And this definitely sucks. Easy to overcome, but it sucks anyway. It looks like an amateur decision if not a bug.

maybe some explanation is in order where a module inside a…

Agree, but you don’t have to explain this to me. I understand that the user should use it the way he likes most. I just stated before that this is not what most people do. But in general, they just do what others do, and they are not trying new things as you are.