KiKit: ModuleNotFoundError: No module named 'pcbnew'

Hello,

I tried kikit on Ubuntu 18.04 and MacOs. I installed it one time from the repository with python3 install and one time from pip3. In both cases and with several kicad_pcb files I get the following error message. Is there a pcbnew package I have install?

Best Christian

/usr/local/bin/kikit panelize grid --space 2 --gridsize 2 2 --tabwidth 3 --tabheight 3 --mousebites 0.5 1 0.25 --radius 1 --panelsize 80 80 /tmp/test.kicad_pcb /tmp/panel.kicad_pcb
Traceback (most recent call last):
  File "/usr/local/bin/kikit", line 11, in <module>
    load_entry_point('KiKit==0.3', 'console_scripts', 'kikit')()
  File "/home/user/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/user/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2854, in load_entry_point
    return ep.load()
  File "/home/user/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2445, in load
    return self.resolve()
  File "/home/user/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/dist-packages/KiKit-0.3-py3.6.egg/kikit/ui.py", line 2, in <module>
    import kikit.export as kiexport
  File "/usr/local/lib/python3.6/dist-packages/KiKit-0.3-py3.6.egg/kikit/export.py", line 5, in <module>
    from pcbnew import *
ModuleNotFoundError: No module named 'pcbnew'

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 42 (21 by maintainers)

Commits related to this issue

Most upvoted comments

Great news! KiCAD 6 will be available with MSVC build instead of MSYS2 build, therefore, KiKit will work on Windows out of the box (just the installation might be a little bit complicated - about 3-4 more commands compared to Linux). The same should go with MacOS

+1 on this as a MacOS user… will work around it using the docker image for now.