Workaround busted /usr/bin/pip3 32/85132/1
authorThanh Ha <zxiiro@gmail.com>
Tue, 15 Oct 2019 20:22:24 +0000 (16:22 -0400)
committerThanh Ha <zxiiro@gmail.com>
Tue, 15 Oct 2019 20:22:29 +0000 (16:22 -0400)
/usr/bin/pip3 appears to be busted in the VM returning the error
below. This patch bypasses the pip3 script and calls python3
directly to run the pip module.

+ pip3 install --upgrade pip
Traceback (most recent call last):
  File "/usr/bin/pip3", line 16, in <module>
    sys.exit(main())
TypeError: 'module' object is not callable

Change-Id: I2e284ccb4e77d9ef8134d44ea20f13fd9d02cda4
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
jjb/integration/integration-install-robotframework.sh

index 78b9a98e0fa5a8a4562f66eaba2e2fac542cb4da..de6fb254aa303cac234751c1c43db4d3528c6b23 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2015 The Linux Foundation and others.
@@ -23,7 +23,7 @@ set -exu
 
 # Make sure pip itself us up-to-date.
 pip install --upgrade pip
-pip3 install --upgrade pip
+python3 -m pip install --user --upgrade pip
 
 pip install --upgrade docker-py importlib requests scapy netifaces netaddr ipaddr pyhocon
 pip install --upgrade robotframework-httplibrary \
@@ -53,10 +53,10 @@ pip install --upgrade jsonpatch
 
 #Module for elasticsearch python client
 #Module for elasticsearch python client
-pip3 install --user https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl
-pip3 install --user https://files.pythonhosted.org/packages/b8/f7/3bb4d18c234a8ce7044d5ee2e1082b7d72bf6c550afb8d51ae266dea56f1/requests-2.9.1-py2.py3-none-any.whl
-pip3 install --user https://files.pythonhosted.org/packages/c3/e3/146b675e6d0138a49c4b817b4e68170eb9b75cee7e71fa3ec69624c4f467/elasticsearch-6.2.0-py2.py3-none-any.whl
-pip3 install --user https://files.pythonhosted.org/packages/75/5e/b84feba55e20f8da46ead76f14a3943c8cb722d40360702b2365b91dec00/PyYAML-3.11.tar.gz
+python3 -m pip install --user urllib3==1.22
+python3 -m pip install --user requests==2.9.1
+python3 -m pip install --user elasticsearch==6.2.0
+python3 -m pip install --user PyYAML==3.11
 
 # odltools for extra debugging
 pip install odltools