← Back to team overview

kicad-developers team mailing list archive

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

 

Hello, Wayne, Kyle!

[CC: to Arch Kicad package maintainer]

On 2016-01-08 16:21, Wayne Stambaugh wrote:
> 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. 

Okay.

> You may have missed the python module install failure.

Likely, will have to look again.

> 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.

Thank you for analysing this... So: heads-up here!
I am currently fine building kicad without the scripting features,
where everything looks normal for me.

Maybe this issue should be documented somewhere for the
distro-packagers before they run into the annoyance when they
enable the scripting feature.

Currently, there seems to be no issue in the "official" Arch package:

https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/kicad

but:

cmake ... -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON ...
might need a manual workaround because the python modules are always installed
in the python site package path which will fail without root privileges on linux distros.

> 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.

Thanks, I choose the third option for now: Not use scripting.

Regards,

Clemens

> 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
>>
> 
> 
> _______________________________________________
> 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