ModuleNotFoundError: No module named 'pcbnew'

See original GitHub issue

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'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:42 (21 by maintainers)

github_iconTop GitHub Comments

5reactions
yaqwsxcommented, Mar 11, 2021

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

2reactions
runger1101001commented, Oct 15, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named kicad.pcbnew.board
pcbnew.board. When trying to run scripts I got the subject message, so I recently upgraded to KiCad 5.1. 6-1.
Read more >
Pcbnew for Kicad cannot be imported in python3.5
I got stuck on “import pcbnew” because it gave me the error “no module name pcbnew” all the time. I checked my Kicad...
Read more >
ModuleNotFoundError: No module named 'kicad'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'kicad' How to remove the ModuleNotFou.
Read more >
ImportError: No module named pcbnew - KiCad
Here is the error message I haven't seen before. When starting PcbNew within Eeschema, the Linux console where "kicad" is invoked spills the ......
Read more >
PcbDraw - Bountysource
Convert your KiCAD board into a nice looking 2D drawing suitable for pinout ... in <module> import pcbnew ModuleNotFoundError: No module named 'pcbnew'....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found