From 021b307297a6ab8dfe9ee3af03154989bcd9e0e8 Mon Sep 17 00:00:00 2001 From: beierlm Date: Tue, 27 Apr 2021 14:33:24 -0400 Subject: [PATCH] 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 --- installers/full_install_osm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1