Open JeremieMerlin opened 7 years ago
Was unable to repeat the bug with @JeremieMerlin.
However, after looking at scripts/setup_CMS_GEM.sh it seems that the python packages are attempted to be installed if:
#Install pip & other packages (should be done only once)
DIR_PIP=$FRAMEWORK_BASE/python/pip
if [[ ! -d $DIR_PIP ]]; then
#Installing pip
python2.7 python/get-pip.py --prefix=$DIR_PIP
#Update environment
export PYTHONPATH=$DIR_PIP/lib/python2.7/site-packages:$PYTHONPATH
export PATH="$PATH:~/.local/bin"
alias pip2.7="$DIR_PIP/bin/pip"
#Installing packages
$DIR_PIP/bin/pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose root_numpy xlrd
So if the user manually created $DIR_PIP
it will not work or if the script did not run to completion (e.g. user pressed Ctrl+C
or lost connection) during the original installation process on a subsequent call of the script it would not attempt to install the required python packages.
However, this does indicate that scripts/setup_CMS_GEM.sh
could be rethought. Instead of checking for $DIR_PIP
the script should probably check instead for the python packages themselves.
Brief summary of issue
Found that issuing setup script:
Types of issue
Expected Behavior
Required python packages should be installed by
pip
when calling setup script.Current Behavior
Python packages were not installed.
Steps to Reproduce (for bugs)
The package
numpy
should have been installed.Your Environment
/bin/bash