fbthrift
fbthrift copied to clipboard
error building cpp2
Any ideas on this error?
Making all in cpp2
make[3]: Entering directory '/home/renan/aur/fbthrift/fbthrift/thrift/lib/cpp2'
PYTHONPATH=../../.python-local/lib/python /usr/bin/python2 -mthrift_compiler.main --gen cpp2 Sasl.thrift
/usr/bin/python2: dynamic module does not define init function (initfrontend)
Makefile:1986: recipe for target 'gen-cpp2/Sasl_types.h' failed
make[3]: *** [gen-cpp2/Sasl_types.h] Error 1
make[3]: Leaving directory '/home/renan/aur/fbthrift/fbthrift/thrift/lib/cpp2'
Makefile:445: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/renan/aur/fbthrift/fbthrift/thrift/lib'
Makefile:527: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/renan/aur/fbthrift/fbthrift/thrift'
Makefile:459: recipe for target 'all' failed
make: *** [all] Error 2
I have the same problem, is there a solution to this issue?
Does it have to do with the python version or if it's running in a virtual environment?
If anybody else has this issue one possible solution is to change the default python path to point at python2.
sudo ln -sf /usr/bin/python2 /usr/bin/python