Ask Your Question

Revision history [back]

I had the same issue and found that it happens when it fails to execute python.

In FindPythonInterp module of cmake, it tries to get the version number by running python command, and if it fails, it is considered as python 1.4.

So I recommend you to execute python command and check if there is an error or not. In my case (Linux env), I got "python: error while loading shared libraries: cannot open shared object file: No such file or directory" error, and solved it by adding /usr/local/lib to LD_LIBRARY_PATH.