INTI-CMNB / KiBot

KiCad automation utility
GNU Affero General Public License v3.0
573 stars 68 forks source link

pcbDraw error : Unable to determine pcbdraw version. #50

Closed JulienDevillers closed 3 years ago

JulienDevillers commented 3 years ago

Hello,

with ubuntu 20.04

I installed kibot and pcbdraw like this:

python -m pip install kibot
python -m pip install pcbdraw

Now, launching kibot with pcbdraw output leads to this error:

ERROR:Unable to determine pcbdraw version:
 (kibot.kibot.kiplot - kiplot.py:110)

What should I do?

In case it would help, here is the configuration:

    comment: 'default green svg top'
    type: 'pcbdraw'
    dir: 'outputs/docs/img'
    options:
      # [boolean=false] render the bottom side of the board (default is top side)
      bottom: true
      # [string|list(string)=''] Name of the filter to mark components as not fitted.
      # A short-cut to use for simple cases where a variant is an overkill
      dnf_filter: ''
      # [number=300] [10,1200] dots per inch (resolution) of the generated image
      dpi: 300
      # [string='svg'] [svg,png,jpg] output format. Only used if no `output` is specified
      format: 'svg'
      # [list(string)=[]] list of components to highlight
      highlight: []
      # [list(string)=[]] list of libraries
      libs: ['/usr/share/pcbdraw/footprints/KiCAD-base']
      # [boolean=false] mirror the board
      mirror: true
      # [boolean=false] do not make holes transparent
      no_drillholes: false
      # [string='%f-%i%v.%x'] name for the generated file. Affected by global options
      output: '%f-%i%v.%x'
      # [boolean=false] show placeholder for missing components
      placeholder: false
      # [dict|None] replacements for PCB references using components (lib:component)
   #   remap:
      # [list(string)|string=none] [none,all] list of components to draw, can be also a string for none or all.
      # The default is none
 #     show_components: none
      # [string|dict] PCB style (colors). An internal name, the name of a JSON file or the style options
  #    style: '/usr/share/pcbdraw/styles/jlcpcb-green-hasl.json'
      # [string=''] Board variant to apply
      variant: ''
      # [boolean=false] render V-CUTS on the Cmts.User layer
      vcuts: false
      # [string='visible'] [visible,all,none] using visible only the warnings about components in the visible side are generated
      warnings: 'none'

Thanks Julien

NightSkySK commented 3 years ago

Please take a look at issue #45 https://github.com/INTI-CMNB/KiBot/issues/45. You've probably has older version of KiCad

JulienDevillers commented 3 years ago

thanks for your answer but unfortunately, I'm runing 5.1.9 Since your message, I did remove kicad via apt and reinstall via apt ; the result is the same.

Application: KiCad
Version: 5.1.9-73d0e3b20d~88~ubuntu20.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.4.0-65-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.71.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.68.0
    Compiler: GCC 9.3.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON
set-soft commented 3 years ago

Hi @JulienDevillers ! The problem is that you installed the regular pcbdraw. Try installing the patched version: https://github.com/INTI-CMNB/PcbDraw

Also: if you can install the Debian package do it. Pip can't solve dependencies outside the pip repo. As the README explains you'll need

Also install the convert (from imagemagick) and rsvg-convert (from librsvg2-bin) tools.

Installing the Debian package will pull these dependencies.