← Back to team overview

kicad-developers team mailing list archive

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

 

I figured out your issue.  Unfortunately when you install from source,
the python modules are always installed in the python site package path
which will fail without root privileges on linux distros.  You may have
missed the python module install failure.  We may want to rethink this
in the future but that is a can of worms I don't want to tackle right
now because it has the potential to break our automated package builds.

You have two options.  Run make install using sudo or manually copy the
python modules somewhere in your home folder and use the PYTHONPATH
environment variable to add your custom path to Python so it can find
the pcbnew python modules.

On 1/8/2016 9:50 AM, Clemens Koller wrote:
> I feel like spamming the list with my noise ;-)
> 
> On 2016-01-08 15:39, jp charras wrote:
>> Looks like pcbnew.py (and perhaps _pcbnew.pyc) is not found ( not copied
>> to the right folder).
> 
> That's what ended up in the bin directory:
> 
> $ pwd
> /home/admin/SW/bin
> $ ls -la
> total 40984
> drwxr-xr-x 2 admin admin     4096 Jan  8 15:32 .
> drwxr-xr-x 5 admin admin     4096 Jan  8 15:32 ..
> -rwxr-xr-x 1 admin admin  1080168 Jan  8 15:25 bitmap2component
> -rwxr-xr-x 1 admin admin  6476080 Jan  8 15:28 _cvpcb.kiface
> -rwxr-xr-x 1 admin admin   847080 Jan  8 15:22 dxf2idf
> -rwxr-xr-x 1 admin admin   509792 Jan  8 15:32 eeschema
> -rwxr-xr-x 1 admin admin  7028544 Jan  8 15:31 _eeschema.kiface
> -rwxr-xr-x 1 admin admin   509184 Jan  8 15:28 gerbview
> -rwxr-xr-x 1 admin admin  2959320 Jan  8 15:28 _gerbview.kiface
> -rwxr-xr-x 1 admin admin   391184 Jan  8 15:22 idf2vrml
> -rwxr-xr-x 1 admin admin    24968 Jan  8 15:22 idfcyl
> -rwxr-xr-x 1 admin admin    16392 Jan  8 15:22 idfrect
> -rwxr-xr-x 1 admin admin  1196304 Jan  8 15:26 kicad
> -rwxr-xr-x 1 admin admin   509184 Jan  8 15:28 pcb_calculator
> -rwxr-xr-x 1 admin admin  2160920 Jan  8 15:26 _pcb_calculator.kiface
> -rwxr-xr-x 1 admin admin   511384 Jan  8 15:32 pcbnew
> -rwxr-xr-x 1 admin admin 14602320 Jan  8 15:32 _pcbnew.kiface
> -rwxr-xr-x 1 admin admin   509792 Jan  8 15:28 pl_editor
> -rwxr-xr-x 1 admin admin  2588016 Jan  8 15:26 _pl_editor.kiface
> $ 
> 
> Clemens
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 



Follow ups

References