Closed fdesse closed 6 years ago
I think the issue is that you don't have ROOT
installed for your Python installation. You can try import ROOT
from Python to check, if it gives ImportError: No module named ROOT
then this is the issue.
How did you install/setup Python 3?
That is correct, ROOT
is not installed in my Python installation.
I very naively did python3 -m venv my-venv
, thinking that it would take the default Python 3 installed on lxplus. I also asumed (I was wrong it seems) that ROOT would be installed there by default.
As there is still no good way to install ROOT, I suggest you use an "LCG view" on lxplus:
source /cvmfs/sft.cern.ch/lcg/views/setupViews.sh LCG_93python3 x86_64-slc6-gcc62-opt
# LCG_93python3 doesn't provide a python binary so alias it instead
alias python=python3
I think there were some "quirks" to using virtualenv with LCG views but I forget the details.
Just to add, if you use virtualenv you don't need the --user
flag with pip as the default is to install to the virtualenv.
Many thanks, I will try this. I will try to use a venv still (and post the way to do it here if I succed). I like the safety of being able to break stuff and then just leave the venv :)
In prevision of the upcoming lhcb starterkit, I tried to install root_pandas on lxplus using the instructions on the starterkit webpage.
I get the following error.
I think its related to root_numpy and ROOT.
I previously updated pip and setuptools (just in case). Not updating them gives the same result.
I use the default lxplus7 settings with python3 (in a venv, but I don't think this makes any difference):
Thx for your help ! :)