Hi,
I am having some trouble with my environment on the Uni’s server where I am trying to work.
I want to use pyroot, for which I use the following script.
source /user/software/root/rootSetup.sh 6.24.06
# Root is built for python 3.6.3
# source /user/software/python/pythonSetup.sh 3.6.3
conda deactivate
conda activate hep
The hep conda environment is python 3.6.3 and running import ROOT in a python interpreter from the terminal works beautifully.
Unfortunately, I am trying to use a jupyter notebook with vscode. I connect to the server from vsc using the ssh extension. I had to put the ealier script into .baschrc for vscode to load it (is there is an alternative way to make the vscode environment recognise root?)
When I make a jupyter notebook to import ROOT I get the error
ImportError: dynamic module does not define module export function (PyInit_libPyROOT)
which does not happen in the integrated terminal with the same environment.
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.24/06
Platform: CentOS7
Compiler: linuxx8664gcc