leoheck / kiri

Kiri is a visual tool designed for reviewing schematics and layouts of KiCad projects that are version-controlled with Git.
MIT License
476 stars 32 forks source link

404 on every schematic / PCB SVG #72

Closed MarcelRobitaille closed 1 year ago

MarcelRobitaille commented 1 year ago

Sorry to bother you again. I'm getting 404 on every schematic SVG. The webpage loads fine otherwise and I'm able to see all my commits. However, I'm not able to see any schematics or PCB.

image

It looks like kiri is looking for these files in .kiri/_local_/kiri/sch and .kiri/_local_/kiri/pcb. The former does not exist and the latter is an empty folder. However, I do have .kiri/_local_/tmp.iQjngeGOvB that has many .plt files inside.

MarcelRobitaille commented 1 year ago

Nevermind, I think there is something missing from my installation. I will try to fix it.

MarcelRobitaille commented 1 year ago

I am still getting this actually. Now, I have a folder .kiri/<hash>/sch and .kiri/<hash>/pcb, but the frontend seems to be looking for .kiri/<hash>/kiri/pcb. I have an empty folder .kiri/<hash>/kiri/pcb but .kiri/<hash>/kiri/sch is missing.

leoheck commented 1 year ago

Run kiri one time with the flag -r to remove old files. And let me know if it works.

MarcelRobitaille commented 1 year ago

I tried with -r -D but I'm still getting the same thing.

leoheck commented 1 year ago

I ran it with one of my projects and it was working fine. I have to investigate then.

Can you use the flags -r -V -t 3 and share the output here?

leoheck commented 1 year ago

@MarcelRobitaille this looks good from my side. Feel free to reopen the issue with extra details if the issue was not fixed for you.

leoheck commented 1 year ago

Please, try to update your Kiri using the latest main branch. Ah, maybe your installation did not when well, and maybe there is something missing since you are using Arch. Do you have your packman history to share here with me so I can update the install_dependencies for your case.. and then we could work together until kiri is working on your system.

leoheck commented 1 year ago

There is also an issue with the rename command. It should be the perl-rename... and it should be. It is fixed in the master too.

leoheck commented 1 year ago

Now it seems to be working. This is the latest commit, 25404d7cf9e1c4ac9353bcbd799e5ec613555aa2

leoheck commented 1 year ago

Still have to check how to install Kicad 7 and (check why xdotool is not plotting Kicad 6 files)

leoheck commented 1 year ago

@MarcelRobitaille Thanks for your help so far.

Is Kiri already working for you? Do you still have issues running it?

MarcelRobitaille commented 1 year ago

I'm still trying to get it working. I had problems with the graphical method of plotting the schematic. plot_kicad_sch was always exiting with 124. Now I'm trying to use the kicad-cli.

MarcelRobitaille commented 1 year ago

OK, everything seems to be working now with kicad-cli. I had to make some changes to the code though. See #76

leoheck commented 1 year ago

Cool awesome.