On Dec 3, 2014, at 13:59, jp charras <[email protected]> wrote:
> 
> Le 02/12/2014 23:45, Mirko Viviani a écrit :
>> Hi,
>> 
>> I’ve compiled kicad-osxtrackpad branch on Yosemite with python 2.7.6 and 
>> scripting/wxpython/modules=ON, but I’ve got the attached error. (I think it 
>> is the same for the main branch)
>> 
>> My build/pcbnew/pcbnew.py does not contain the line 'if version_info >= 
>> (2,6,0):”):’, so I’ve disabled the fix_swig_imports script to complete the 
>> build process. Don’t know if it’s the right thing to do, but it seems to 
>> work.
>> 
> 
> What are the first lines of code of  /pcbnew.py ?


I think you have found the problem, but I don’t know why I have this very old 
version installed!


# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.36
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.

import _pcbnew
import new
new_instancemethod = new.instancemethod
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)
[..]

-- 
Best regards,
Mirko


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to