cmake-basis / BASIS

CMake BASIS makes it easy to create sharable software and libraries that work together. This is accomplished by combining and documenting some of the best practices and utilities available. This project supplies a fully integrated suite of functionality to make the whole process seamless!
https://cmake-basis.github.io
Other
48 stars 10 forks source link

problems installing MASS #639

Open rosella1234 opened 3 years ago

rosella1234 commented 3 years ago

when trying to compile MASS (ccmake MASS_1.1.0) the following error occurs :

 CMake Error at /opt/basis/share/find-modules/FindPythonModules.cmake:345 (message):
   Could NOT find the following Python modules:

   nibabel;numpy;sklearn;sklearn.cluster

   Check if executing /home/biolab/anaconda3/bin/python -c "import <module>"
   works or set the PythonModules_DIR variable.  Alternatively, set the
   PythonModules_<module>_PATH variable(s) instead or the PYTHONPATH
   environment variable.  Unset PythonModules_DIR if you chose an alternative
   option and before rerunning CMake again.
 Call Stack (most recent call first):
   /opt/basis/share/modules/CommonTools.cmake:56 (_find_package)
   /opt/basis/share/modules/CommonTools.cmake:691 (find_package)
   /opt/basis/share/modules/ProjectTools.cmake:2181 (basis_find_package)
   /opt/basis/share/modules/ProjectTools.cmake:2475 (basis_find_packages)
   /opt/basis/share/modules/ProjectTools.cmake:2751 (basis_project_begin)
   CMakeLists.txt:48 (basis_project_impl)

Is this related on an incorrect installation of basis? I have python istalled on my machine and all the modules that cmake can't find during compilation actually exist thanks

schuhschuh commented 2 years ago

Sorry for the late reply. Were those Python packages installed under the base Anaconda environment (/home/biolab/anaconda3/bin/python)? Otherwise, you may have to check the PYTHON_EXECUTABLE CMake variable and point it to the respective conda environment (e.g., /home/biolab/anaconda3/envs/mass/bin/python). Presumably you could activate the appropriate environment before running cmake / ccmake as long as you are not using the CMake GUI.