← Back to team overview

kicad-developers team mailing list archive

Re: BUG FIXED: Opening pcbnew from kicad: ImportError: No module named pcbnew

 

A short follow up:

On 2016-01-10 17:13, Clemens Koller wrote:
> I am currently back to:
> cmake 	-DCMAKE_INSTALL_PREFIX=~/SW \
> 	-DDEFAULT_INSTALL_PATH=~/SW \
> 	-DKICAD_SKIP_BOOST=ON \
> 	-DKICAD_SCRIPTING=ON \
> 	-DKICAD_SCRIPTING_MODULES=ON \
> 	-DKICAD_SCRIPTING_WXPYTHON=ON \
> 	../../
> 
> $ PYTHONPATH=~/SW/lib/python2.7/site-packages ./pcbnew
> Traceback (most recent call last):
>   File "<string>", line 3, in <module>
>   File "/home/admin/SW/lib/python2.7/site-packages/pcbnew.py", line 5055, in <module>
>     class BOARD(BOARD_ITEM):
>   File "/home/admin/SW/lib/python2.7/site-packages/pcbnew.py", line 5710, in BOARD
>     def GetViaByPosition(self, aPosition, aLayer=UNDEFINED_LAYER):
> NameError: name 'UNDEFINED_LAYER' is not defined

This issue was successfully fixed with git commit 41db57c5f (no idea what bzr ref that is):
Author: jean-pierre charras
pcbnew.py: fix error "NameError: name 'UNDEFINED_LAYER' is not defined" when
running pcbnew/wxPython, which prevents from openning the Python console.

So, it looks that we are fine from Python 2.7 up to Python 3.5.1

Thanks,

Clemens


Follow ups

References