From: beierlm Date: Tue, 27 Apr 2021 18:33:24 +0000 (-0400) Subject: Install pip requirements as user X-Git-Tag: release-v10.0-start~21 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F10715%2F2;p=osm%2Fdevops.git Install pip requirements as user Due to conflicting pyyaml versions at the system level, the osm client needs to install its requirements.txt as user, not as root Fixes bug 1510 Change-Id: I698a82837c259ecb8b531c7fb92a6e6bd659267e Signed-off-by: beierlm --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 321a794c..11723feb 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -341,11 +341,11 @@ function install_osmclient(){ sudo -H LC_ALL=C python3 -m pip install -U python-magic pyangbind verboselogs sudo apt-get install -y python3-osm-im python3-osmclient if [ -f /usr/lib/python3/dist-packages/osm_im/requirements.txt ]; then - sudo -H LC_ALL=C python3 -m pip install -r /usr/lib/python3/dist-packages/osm_im/requirements.txt + python3 -m pip install -r /usr/lib/python3/dist-packages/osm_im/requirements.txt fi if [ -f /usr/lib/python3/dist-packages/osmclient/requirements.txt ]; then sudo apt-get install -y libcurl4-openssl-dev libssl-dev - sudo -H LC_ALL=C python3 -m pip install -r /usr/lib/python3/dist-packages/osmclient/requirements.txt + python3 -m pip install -r /usr/lib/python3/dist-packages/osmclient/requirements.txt fi #sed 's,OSM_SOL005=[^$]*,OSM_SOL005=True,' -i ${HOME}/.bashrc #echo 'export OSM_HOSTNAME=localhost' >> ${HOME}/.bashrc