Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems installing MASS #639

Open
rosella1234 opened this issue Apr 19, 2021 · 1 comment
Open

problems installing MASS #639

rosella1234 opened this issue Apr 19, 2021 · 1 comment

Comments

@rosella1234
Copy link

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants