[Smtk-developers] Homebrew Python

David Thompson david.thompson at kitware.com
Wed Apr 4 13:13:00 EDT 2018


> For those of you using homebrew python to build SMTK/CMB, be aware that "brew upgrade" will switch to python3, which causes build problems[1] at the moment.

If you already had a homebrew python2 built, a workaround is to "brew switch python 2.7.14" (or whatever version you have).

If you don't already have a homebrew python, I guess the workaround is to use the superbuild's python. But really we should get SMTK working with Python 3. I had it at least compiling a few months back but the ParaView python changes appear to have caused some configuration failures.

	David


> [1]:
> CMake Error at /pulsar/build/cmb/superbuild/superbuild/paraview/src/VTK/CMake/FindPythonLibs.cmake:183 (FILE):
>  FILE STRINGS file
>  "/usr/local/Frameworks/Python.framework/Headers/patchlevel.h" cannot be
>  read.
> Call Stack (most recent call first):
>  thirdparty/smtk/CMakeLists.txt:325 (find_package)
> 
> 
> CMake Error at /usr/local/Cellar/cmake/3.9.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
>  Could NOT find PythonInterp: Found unsuitable version "1.4", but required
>  is at least "2.7" (found /usr/local/bin/python2.7)
> Call Stack (most recent call first):
>  /usr/local/Cellar/cmake/3.9.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:375 (_FPHSA_FAILURE_MESSAGE)
>  /usr/local/Cellar/cmake/3.9.2/share/cmake/Modules/FindPythonInterp.cmake:152 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>  thirdparty/smtk/CMakeLists.txt:326 (find_package)
> 



More information about the Smtk-developers mailing list