Package Details: kibot 1.8.2-2

Git Clone URL: https://aur.archlinux.org/kibot.git (read-only, click to copy)
Package Base: kibot
Description: KiCad automation utility
Upstream URL: https://pypi.org/project/kibot
Keywords: automation kicad utility
Licenses: AGPL-3.0-or-later
Conflicts: kibot, pcbdraw
Provides: kibot, pcbdraw
Submitter: taotieren
Maintainer: taotieren (cedric-air)
Last Packager: taotieren
Votes: 2
Popularity: 0.000061
First Submitted: 2021-12-20 07:38 (UTC)
Last Updated: 2024-12-03 17:41 (UTC)

Pinned Comments

taotieren commented on 2024-11-21 10:12 (UTC) (edited on 2024-11-21 10:13 (UTC) by taotieren)

kibot involves more AUR package installation, how do you not want to compile and install locally, you can add my self-built source to install it

kibot-check
KiBot installation checker

Core:
Linux: 6.11.9 (Linux 14s 6.11.9-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sun, 17 Nov 2024 16:06:09 +0000 x86_64 GNU/Linux)
Python: 3.12.7 (main, Oct  1 2024, 11:15:50) [GCC 14.2.1 20240910]
KiCad: 8.99.0-3143-g30cebd17e0
Kibot: 1.8.2

Modules:
Colorama: 0.4.6
LXML: 5.3.0
Lark: 1.2.2
PyYAML: 6.0.2
QRCodeGen: Ok
Requests: 2.32.3
XLSXWriter: 3.1.9
Xvfbwrapper: Ok
markdown2: 2.5.0
numpy: 2.1.3

Tools:
Bash: 5.2.37 (GNU bash,版本 5.2.37(1)-release (x86_64-pc-linux-gnu))
Blender: 4.2.3 (Blender 4.2.3 LTS)
Ghostscript: 10.4.0 (10.04.0)
Git: 2.47.0 (git version 2.47.0)
ImageMagick: 7.1.1.41 (Version: ImageMagick 7.1.1-41Q16-HDRI x86_64 22504 https://imagemagick.org)
Interactive HTML BoM: 2.9.0 (v2.9.0)
KiBoM: 1.9.1 (KiBOM Version: 1.9.1)
KiCad Automation tools (kiauto): 2.3.3 (pcbnew_do 2.3.3 - Copyright 2018-2024, INTI/Productize SPRL - License: Apache)
KiCad PCB/SCH Diff (kidiff): 2.5.5 (kicad-diff.py 2.5.5 - Copyright 2020-2024, INTI/Salvador E. Tropea -License:)
KiCost: 1.1.18 (KiCost v1.1.18)
KiKit: kikit, version 0+unknown
OpenSCAD: 2021.1.0 (OpenSCAD version 2021.01)
Pandoc: 3.5.0 (pandoc 3.5)
RAR: 7.1.0 (RAR 7.01   Copyright (c) 1993-2024 Alexander Roshal   12 May 2024)
RSVG tools: 2.59.2 (rsvg-convert version 2.59.2)
- Missing Helvetica font, try installing Ghostscriptfonts
Xvfb: Ok (xvfb-run)

* KiKit not installed or too old
Visit: https://github.com/INTI-CMNB/KiKit
Download it from: https://github.com/INTI-CMNB/KiKit/releases
Official 1.3.0 release does not work, use my fork if 1.3.0 is the latest
You can also try the official 1.4.0 release
This tool might be automatically downloaded by KiBot.
- Mandatory for: `panelize`, `stencil_3d`, `stencil_for_jig`
- Optional to separate multiboard projects for general use

* RSVG tools not installed or too old
Install the `librsvg` package, i.e.: `sudo pacman -S librsvg`
This tool might be automatically downloaded by KiBot.
- Optional to:
- SVG logos for the BoM for `bom`
- Create outputs preview for `navigate_results`
- Create PNG icons for `navigate_results`
- Create PDF, PNG, PS and EPS formats for `pcb_print`
- Create PNG, JPG and BMP images for `pcbdraw`


Color reference: ok, optional for an output, optional for general use, mandatory for an output, mandatory for general use

Did this help? Please consider commenting it on https://github.com/INTI-CMNB/KiBot/discussions/categories/kibot-check

Latest Comments

taotieren commented on 2024-11-21 10:12 (UTC) (edited on 2024-11-21 10:13 (UTC) by taotieren)

kibot involves more AUR package installation, how do you not want to compile and install locally, you can add my self-built source to install it

kibot-check
KiBot installation checker

Core:
Linux: 6.11.9 (Linux 14s 6.11.9-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sun, 17 Nov 2024 16:06:09 +0000 x86_64 GNU/Linux)
Python: 3.12.7 (main, Oct  1 2024, 11:15:50) [GCC 14.2.1 20240910]
KiCad: 8.99.0-3143-g30cebd17e0
Kibot: 1.8.2

Modules:
Colorama: 0.4.6
LXML: 5.3.0
Lark: 1.2.2
PyYAML: 6.0.2
QRCodeGen: Ok
Requests: 2.32.3
XLSXWriter: 3.1.9
Xvfbwrapper: Ok
markdown2: 2.5.0
numpy: 2.1.3

Tools:
Bash: 5.2.37 (GNU bash,版本 5.2.37(1)-release (x86_64-pc-linux-gnu))
Blender: 4.2.3 (Blender 4.2.3 LTS)
Ghostscript: 10.4.0 (10.04.0)
Git: 2.47.0 (git version 2.47.0)
ImageMagick: 7.1.1.41 (Version: ImageMagick 7.1.1-41Q16-HDRI x86_64 22504 https://imagemagick.org)
Interactive HTML BoM: 2.9.0 (v2.9.0)
KiBoM: 1.9.1 (KiBOM Version: 1.9.1)
KiCad Automation tools (kiauto): 2.3.3 (pcbnew_do 2.3.3 - Copyright 2018-2024, INTI/Productize SPRL - License: Apache)
KiCad PCB/SCH Diff (kidiff): 2.5.5 (kicad-diff.py 2.5.5 - Copyright 2020-2024, INTI/Salvador E. Tropea -License:)
KiCost: 1.1.18 (KiCost v1.1.18)
KiKit: kikit, version 0+unknown
OpenSCAD: 2021.1.0 (OpenSCAD version 2021.01)
Pandoc: 3.5.0 (pandoc 3.5)
RAR: 7.1.0 (RAR 7.01   Copyright (c) 1993-2024 Alexander Roshal   12 May 2024)
RSVG tools: 2.59.2 (rsvg-convert version 2.59.2)
- Missing Helvetica font, try installing Ghostscriptfonts
Xvfb: Ok (xvfb-run)

* KiKit not installed or too old
Visit: https://github.com/INTI-CMNB/KiKit
Download it from: https://github.com/INTI-CMNB/KiKit/releases
Official 1.3.0 release does not work, use my fork if 1.3.0 is the latest
You can also try the official 1.4.0 release
This tool might be automatically downloaded by KiBot.
- Mandatory for: `panelize`, `stencil_3d`, `stencil_for_jig`
- Optional to separate multiboard projects for general use

* RSVG tools not installed or too old
Install the `librsvg` package, i.e.: `sudo pacman -S librsvg`
This tool might be automatically downloaded by KiBot.
- Optional to:
- SVG logos for the BoM for `bom`
- Create outputs preview for `navigate_results`
- Create PNG icons for `navigate_results`
- Create PDF, PNG, PS and EPS formats for `pcb_print`
- Create PNG, JPG and BMP images for `pcbdraw`


Color reference: ok, optional for an output, optional for general use, mandatory for an output, mandatory for general use

Did this help? Please consider commenting it on https://github.com/INTI-CMNB/KiBot/discussions/categories/kibot-check

taotieren commented on 2024-11-21 06:26 (UTC)

@dreieck Thanks!

dreieck commented on 2024-11-20 19:54 (UTC)

According to ↗ this comment on github.com, PcbDraw is now part of KiBot.

So, pcbdraw seems to be should removed from the depends array (and added to the provides array).

Regards and thanks for maintaining!

taotieren commented on 2023-11-25 03:30 (UTC)

@jslds139 kibot self-tests missing these dependencies with an error message, if it can receive this error message, I can modify some of the dependencies to be optional and add them as co-maintainers if you want.

jclds139 commented on 2023-11-22 20:54 (UTC)

Can't most of these dependencies be optional? Particularly ones like rar and blender which are only needed for specific KiBot commands.

svenk commented on 2023-09-11 05:56 (UTC)

I found the installation of this package broken with this output:

% kibot --quick-start 
ERROR:Unable to import plug-ins: cannot import name 'macros' from 'kibot.macros' (/usr/lib/python3.11/site-packages/kibot/macros.py) (kibot.gs - gs.py:731)
ERROR:Make sure you used `--no-compile` if you used pip for installation (kibot.gs - gs.py:731)
...

My solution was to install kibot by pip user-wide over the system-wide installation with pip install --upgrade --force-reinstall --break-system-packages --no-compile kibot and then to use the working ~./local/bin/kibot instead of /usr/bin/kibot. Use which kibot and change your $PATH for making sure you use the correct variant.

cedric-air commented on 2023-07-22 07:25 (UTC)

python-lark-parser needs to be added as a dependency, this happens with my PKGBUILD without:

$ kibot
ERROR:Unable to import plug-ins: No module named 'lark' (kibot.gs - gs.py:731)
ERROR:Make sure you used `--no-compile` if you used pip for installation (kibot.gs - gs.py:731)
ERROR:Python path: ['/usr/bin', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/usr/lib/python3.11/site-packages'] (kibot.gs - gs.py:731)

Installing python-lark-parser:

# pacman -S python-lark-parser
resolving dependencies...
looking for conflicting packages...

Packages (1) python-lark-parser-1.1.5-4

Total Download Size:   0.25 MiB
Total Installed Size:  1.29 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-lark-parser-1.1.5-4-any                                 256.0 KiB   402 KiB/s 00:01 [######################################################] 100%
(1/1) checking keys in keyring                                                              [######################################################] 100%
(1/1) checking package integrity                                                            [######################################################] 100%
(1/1) loading package files                                                                 [######################################################] 100%
(1/1) checking for file conflicts                                                           [######################################################] 100%
(1/1) checking available disk space                                                         [######################################################] 100%
:: Processing package changes...
(1/1) installing python-lark-parser                                                         [######################################################] 100%
Optional dependencies for python-lark-parser
    python-atomicwrites: for atomic_cache
    python-regex: for regex support
    python-js2py: for nearley support
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

After installing kibot works, but can't find a config file

$ kibot
ERROR:No config file found (*.kibot.yaml), use -c to specify one. (kibot - __main__.py:221)

It works (partly) when kibot is run in a directory containing a config file:

$ kibot
Using config file: <snip>.kibot.yaml
Using SCH file: <snip>.kicad_sch
- 'Gerbers compatible with Elecrow' (Elecrow_gerbers) [gerber]
- 'Drill files compatible with Elecrow' (Elecrow_drill) [excellon]
- 'Gerbers compatible with FusionPCB' (FusionPCB_gerbers) [gerber]
- 'Drill files compatible with FusionPCB' (FusionPCB_drill) [excellon]
- 'Gerbers compatible with JLCPCB' (JLCPCB_gerbers) [gerber]
WARNING:(W049) Layer "Inner layer 1" isn't used (kibot - out_any_layer.py:187)
WARNING:(W049) Layer "Inner layer 2" isn't used (kibot - out_any_layer.py:187)
WARNING:(W049) Layer "Inner layer 3" isn't used (kibot - out_any_layer.py:187)
WARNING:(W049) Layer "Inner layer 4" isn't used (kibot - out_any_layer.py:187)
WARNING:(W049) Layer "Inner layer 5" isn't used (kibot - out_any_layer.py:187)
WARNING:(W049) Layer "Inner layer 6" isn't used (kibot - out_any_layer.py:187)
- 'Drill files compatible with JLCPCB' (JLCPCB_drill) [excellon]
- 'Gerbers compatible with P-Ban' (P-Ban_gerbers) [gerber]
- 'Drill files compatible with P-Ban' (P-Ban_drill) [excellon]
- 'Gerbers compatible with PCBWay' (PCBWay_gerbers) [gerber]
- 'Drill files compatible with PCBWay' (PCBWay_drill) [excellon]
- 'Print schematic (PDF)' (print_sch) [pdf_sch_print]
- Trying to download KiCad Automation tools (https://github.com/INTI-CMNB/KiAuto/releases)
WARNING:(W093) Using downloaded `eeschema_do` tool, please visit https://github.com/INTI-CMNB/KiAuto for details (kibot - dep_downloader.py:672)
- 'Print F.Cu+Dwgs.User' (print_front) [pdf_pcb_print]
WARNING:(W058) This file is already opened (/home/cedric/git-werkmap/<snip>.kicad_pcb) (pcbnew_do - pcbnew_do:194) (kibot - kiplot.py:132)
WARNING:(W054) Time out detected, on slow machines or complex projects try: (kibot - kiplot.py:196)
WARNING:(W054) `kiauto_time_out_scale` and/or `kiauto_wait_start` global options (kibot - kiplot.py:197)
ERROR:/usr/bin/pcbnew_do returned 1 (kibot - kiplot.py:199)

cedric-air commented on 2023-07-22 07:11 (UTC)

Build failed for me (my PKGBUILD from my below post does build OK, but I don't know if the resulting package is OK)

[cedric@cedric-work-laptop kibot]$ makepkg
==> Making package: kibot 1.6.3-0 (Sat Jul 22 07:10:21 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading kibot-1.6.3.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 25.5M    0 25.5M    0     0  2153k      0 --:--:--  0:00:12 --:--:-- 2358k
==> Validating source files with sha256sums...
    kibot-1.6.3.tar.gz ... Passed
==> Extracting sources...
  -> Extracting kibot-1.6.3.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting build()...
/usr/bin/python: No module named build
==> ERROR: A failure occurred in build().
    Aborting...

cedric-air commented on 2023-07-22 05:34 (UTC)

This PKGBUILD makes the current version (1.6.3) :

# Maintainer: taotieren <admin@taotieren.com>

pkgname=kibot
pkgver=1.6.3
pkgrel=1
epoch=
pkgdesc="KiCad automation utility"
arch=('any')
url="https://github.com/INTI-CMNB/KiBot"
license=('GPL-3.0')
groups=()
depends=('python' 'kibom' 'pcbdraw' 'kiauto' 'python-yaml')
makedepends=("python-setuptools")
checkdepends=()
optdepends=()
provides=()
conflicts=(kibot-git)
replaces=()
backup=()
options=('!strip')
install=
changelog=
source=("${pkgname}-${pkgver}.tar.gz::https://ghproxy.com/${url}/archive/refs/tags/v${pkgver}.tar.gz")
noextract=()
sha256sums=('9d127beee846cf80cee7892375804ff1bc4b504922618b865447c916295301ba')
#validpgpkeys=()

package() {
    cd "${srcdir}/KiBot-${pkgver}"
    python setup.py install --no-compile --root="$pkgdir"
}