PyCOMPLETE / LHCMeasurementTools

0 stars 2 forks source link

pytimber installation #5

Open giadarol opened 4 years ago

giadarol commented 4 years ago

pip install pytimber installs a too recent version of jpype resulting in an error.

To have a working installation I needed to do the following:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p /afs/cern.ch/work/l/lhcecld/miniconda
. miniconda/bin/activate
pip install numpy scipy matplotlib h5py cython ipython
pip install jpype1==0.7.5 # Need to choose this version
pip install pytimber
giadarol commented 4 years ago

If I install the most recent version of pytimber from the acc-py repository the problem disappears.

The procedure is the following:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p /afs/cern.ch/work/l/lhcecld/miniconda
. miniconda/bin/activate
pip install numpy scipy matplotlib h5py cython ipython pandas
pip install git+https://gitlab.cern.ch/acc-co/devops/python/acc-py-pip-config
pip install pytimber

N.B. To have all spark functionalities pandas needs to be installed before pytimber