YuvalNirkin / face_swap

End-to-end, automatic face swapping pipeline
GNU General Public License v3.0
827 stars 203 forks source link

ImportError: ../face_swap_py.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE #43

Closed IOEvan closed 5 years ago

IOEvan commented 5 years ago

There was a error after I finished the Ubuntu Installation Guide.

When I using "import face_swap_py", it threw ImportError: /home/python/code/face_swap/interfaces/python/face_swap_py.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE

And the version of python is Python 2.7.15 |Anaconda, Inc.|. The "PYTHON_LIBRARIES" in the "Makefile" is default:PYTHON_LIBRARIES := boost_python-py27 python2.7.

So how can I to deal with this error?

longhopefor commented 5 years ago

can i ask how do you solve the problem? i have the same question with you

IOEvan commented 5 years ago

can i ask how do you solve the problem? i have the same question with you

Sorry, it's too long for me to remember this question. :)

zhuhaozh commented 4 years ago

Hi, @longhopefor @YuvalNirkin i met the same problem, anyone knows how to solve this?

zhuhaozh commented 4 years ago

Hi, @longhopefor @YuvalNirkin i met the same problem, anyone knows how to solve this?

Solved by installing this on a docker image. I think it may cause by multiple versions of python, and on the docker image it has a pure python env.

YuvalNirkin commented 4 years ago

Make sure the boost python and numpy libraries actually exist and that cmake did not find another boost version instead.