ModuleNotFoundError: No module named 'pcbnew'
See original GitHub issueHello,
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:
- Created 3 years ago
- Comments:42 (21 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.