leap-sdk-python3
leap-sdk-python3 copied to clipboard
__swig_getmethods__ no longer exists in swig 4.x
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.