← Back to team overview

kicad-developers team mailing list archive

Re: wxPython version check

 

On 2/15/2015 7:06 PM, Garth Corral wrote:
> Well, yes, you’ve sort of explained the problem.  Unless wxPython is on the library path or using PYTHONPATH it isn’t going to work, and I don’t have wxPython installed on my system for any other purpose.  So, invoking the system python as is done in the version check isn’t going to work without first pointing it to a path that contains the wxPython library.
> 
> I’ve been building wxPython as part of my kicad builds and passing -DPYTHON_SITE_PACKAGE_PATH to cmake with the built wxPython library.  Up to now this has worked for me.

This should have never worked in the first place.  Would you expect
kicad to build if a valid version of wxWidgets or Boost could not be
found?  The build configuration should have always checked for a valid
install of wxPython before allowing you to build kicad with
-DKICAD_SCRIPTING_WXPYTHON=ON.  You will have to tell the python
interpreter where wxPython is installed before you configure the kicad
build.  I'm sorry for the inconvenience but you've been skating on thin
ice with the previous behavior.

> 
> 
> Garth
> 
> 
>> On Feb 15, 2015, at 3:54 PM, Wayne Stambaugh <stambaughw@xxxxxxxxx> wrote:
>>
>> I'm confused.  How else should this work?  If configure your kicad build
>> to include wxPython, then one would expect the configuration to fail if
>> wxPython is not installed or the correct version.  Irregardless of where
>> wxPython is installed on your system, python still needs to know where
>> it is installed before you can use it either by installing wxPython into
>> your python library path, adding the path programmatically during python
>> scripting initialization, or using PTYHONPATH.
>>
>> On 2/15/2015 6:39 PM, Garth Corral wrote:
>>> I build wxPython as part of my kicad build.  So if you just invoke python and do, import wxversion, it will fail with an import error because it can’t find the module.  I’d need to set the python path to point to my built wxPython.  When all is compiled and installed, everything works because the libraries are moved into the right places.
>>>
>>> Garth
>>>
>>>> On Feb 15, 2015, at 3:36 PM, Wayne Stambaugh <stambaughw@xxxxxxxxx> wrote:
>>>>
>>>> If you don't have wxPython installed, how are you compiling with
>>>> KICAD_SCRIPTING_WXPYTHON=ON?  The wxPython configuration check and the
>>>> python scripting version selection initialization only happen when you
>>>> configure your build with KICAD_SCRIPTING_WXPYTHON=ON.
>>>>
>>>> On 2/15/2015 6:30 PM, Garth Corral wrote:
>>>>>
>>>>> Hmm…  So, unless I’m missing something, the new wxPython version check isn’t ever going to work for me.  I don’t have wxPython installed as part of my system install so importing wxversion is always going to fail unless I point it to my wxPython that I build as part of my kicad builds.  Anyone else experiencing this?
>>>>>
>>>>>
>>>>> Garth
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>
>>
>> _______________________________________________
>> 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