kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #22555
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
-
Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Jon Neal, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Nick Østergaard, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Wayne Stambaugh, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Wayne Stambaugh, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: jp charras, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Wayne Stambaugh, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Nick Østergaard, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-08
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Strontium, 2016-01-09
-
Re: Opening pcbnew from kicad: ImportError: No module named pcbnew
From: Clemens Koller, 2016-01-10