leap-sdk-python3 icon indicating copy to clipboard operation
leap-sdk-python3 copied to clipboard

__swig_getmethods__ no longer exists in swig 4.x

Open turtleizzy opened this issue 3 years ago • 1 comments

If you encountered NameError: name '__swig_getmethods__' is not defined like me, use swig 3.0.12 to compile instead of swig 4.x.

Ubuntu >20.04 ships only swig 4.x in apt sources so you will need to compile swig 3.0.12 from the source and set the proper path in build.sh.

Don't forget to find a working libpcre.so.1 because swig 3.0.12 needs that and it is also not installable from apt sources.

turtleizzy avatar Nov 29 '21 08:11 turtleizzy