Thanks for your prompt reply. I am working on cern lxplus and so pointing libraries from there.
I tried this command:
cmake -DCMAKE_INSTALL_PREFIX=/tmp/shilpi/geant4.10.06-install /tmp/shilpi/geant4.10.06.p02 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_PYTHON=ON -DCMAKE_PREFIX_PATH=/cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/boost/1.72.0-gchjei/
I get this warning:
– Found PythonInterp: /cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_10_6_1/external/slc7_amd64_gcc820/bin/python3 (found suitable version “3.6.4”, minimum required is “3.0”)
– Found PythonLibs: /cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_10_6_1/external/slc7_amd64_gcc820/lib/libpython3.6m.so (found version “3.6.8”)
CMake Warning at /cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/share/cmake-3.14/Modules/FindBoost.cmake:896 (message):
New Boost version may have incorrect or missing dependencies and imported
Call Stack (most recent call first):
– Boost version: 1.72.0
– Found the following Boost libraries:
But everything compiled as usual. It still gave me the same error when I did:
from GEANT4 import *
If I look inside /cvmfs/cms.cern.ch/slc7_amd64_gcc820/external/boost/1.72.0-gchjei/lib/, I see this: libboost_python27.so
so probably its compiled with python2.7 - I am not sure…
So your suggestion would be install a boost version 1.7 using python3?
Also, may I ask which versions of GEANT4 can work with python2? I can try with that as well.
Thanks a lot,