Package Details: kibot 1.6.5-1

Git Clone URL: https://aur.archlinux.org/kibot.git (read-only, click to copy)
Package Base: kibot
Description: KiCad automation utility
Upstream URL: https://github.com/INTI-CMNB/KiBot
Keywords: automation kicad utility
Licenses: AGPL-3.0-or-later
Conflicts: kibot, kibot-git
Provides: kibot
Submitter: taotieren
Maintainer: taotieren (cedric-air)
Last Packager: taotieren
Votes: 2
Popularity: 0.002227
First Submitted: 2021-12-20 07:38 (UTC)
Last Updated: 2024-04-08 13:28 (UTC)

Latest Comments

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"
}