Closed bzgec closed 2 years ago
Try the follwing modified PKGBUILD
# Maintainer: thegala <thegala at disroot.org>
_pkgname=pcbdraw
pkgname=pcbdraw-git
pkgver=252.1c3e689
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Convert your KiCAD boards into nice looking 2D drawings suitable for pinout diagrams."
url="https://github.com/INTI-CMNB/pcbdraw"
license=('Apache2.0')
depends=('python' 'kicad')
makedepends=('git' 'python' 'python-setuptools')
source=("${_pkgname}::git+https://github.com/INTI-CMNB/pcbdraw")
md5sums=('SKIP')
provides=('pcbdraw')
conflicts=('pcbdraw')
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule update --init
}
pkgver()
{
cd "$_pkgname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
package() {
cd $_pkgname
python setup.py install --root="$pkgdir"
}
I simply added a prepare callback that updates the clone repo's submodules, which is required to get the footprints.
Regarding some footprints being populated and others not, that is because they must exist in PcbDraw-Lib
I see that you already commented on AUR pcbdraw-git
package.
This adds some footprints, for the missing ones I should report to PcbDraw-Lib?
Yeah, why not.
You can also attempt to draw them yourself if you are familiar with vector editing (I would recommend Inkscape for it)
Hello i have the same issue on linux mint. Can you help me to solve this? I'm new to phyton scripts and i installed pcbdraw and pinion by pip. Kicad is working good.
Thank you
@Sampozzo I would create a new Issue with as much detail and logging as possible.
@Electro707 I just created a really simple pcb to test pcbdraw and i have the same error said in this post:
pcbdraw test-prj/test-prj.kicad_pcb ./image.svg
Warning: component 'PinHeader_1x03_P2.00mm_Vertical' for footprint 'J2' from library 'Connector_PinHeader_2.00mm' was not found Warning: component 'PinHeader_1x03_P2.00mm_Vertical' for footprint 'J1' from library 'Connector_PinHeader_2.00mm' was not found
I'm on a fresh Ubuntu install with kicad 6
@Sampozzo That error exists because there is no graphic for those footprints in pcbdraw-lib, they will need to be created for those footprints. If you replace the 2mm header with 2.54mm header, the issue should go away as they are in pcbdraw-lib
@Electro707 i have the same error with 2.54 footprints, i solved by passing the --libs param but i have a blank image with no error.
What now i uderstand is that pinion need bpcdraw that need pcbdraw-lib... and you need to create a lib for every custom footprint you have in your project. This is not clear for people like me that found a great project like pinion, and this is why i found this thread, need to learn a lot :)
Thank you for your help
I am having a problem that no component is found.
Running Arch Linux with
pcbdraw-git
package. I tried installing it withpip
, but then some components were populated and others weren't.KiCad version: 6.0.1 PcbDraw version: 0.9.0-1 Python version: 3.10.1