- Code: Select all
[omero@omero ~]$ ls -l /usr/local/bin/ | grep -E "pip|python"
-rwxr-xr-x. 1 root root 213 19 juil. 15:52 pip
-rwxr-xr-x. 1 root root 213 19 juil. 15:52 pip2
-rwxr-xr-x. 1 root root 213 19 juil. 15:52 pip2.7
lrwxrwxrwx. 1 root root 24 4 nov. 2015 python -> /usr/local/bin/python2.7
-rwxr-xr-x. 1 root root 9744 4 nov. 2015 python2.7
-rwxr-xr-x. 1 root root 1687 4 nov. 2015 python2.7-config
The last time you ran the suggested reinstall reportlab, it was as the root user.
Let's see if what happens if we try that as the omero user:
Yes
- Code: Select all
[omero@omero ~]$ pip install reportlab
Collecting reportlab
/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading reportlab-3.3.0.tar.gz (2.0MB)
100% |████████████████████████████████| 2.0MB 107kB/s
Requirement already satisfied (use --upgrade to upgrade): pillow>=2.4.0 in /opt/rh/python27/root/usr/lib64/python2.7/site-packages (from reportlab)
Requirement already satisfied (use --upgrade to upgrade): pip>=1.4.1 in /opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg (from reportlab)
Collecting setuptools>=2.2 (from reportlab)
Downloading setuptools-25.1.1-py2.py3-none-any.whl (442kB)
100% |████████████████████████████████| 446kB 949kB/s
Installing collected packages: setuptools, reportlab
Found existing installation: setuptools 0.9.8
Uninstalling setuptools-0.9.8:
Exception:
Traceback (most recent call last):
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove
renames(path, new_path)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/__init__.py", line 315, in renames
shutil.move(old, new)
File "/opt/rh/python27/root/usr/lib64/python2.7/shutil.py", line 302, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/opt/rh/python27/root/usr/bin/easy_install'
/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
- Code: Select all
[omero@omero ~]$ pip install --upgrade pip
/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Exception:
Traceback (most recent call last):
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove
renames(path, new_path)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/__init__.py", line 315, in renames
shutil.move(old, new)
File "/opt/rh/python27/root/usr/lib64/python2.7/shutil.py", line 302, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/opt/rh/python27/root/usr/bin/pip'
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
It is a vicious circle
Philippe