If, when creating a Python application in Python Selector, you are receiving an error similar to this one:
OSError: Command /home/USER/virtualenv/APPNAME/XX/bin/pythonXX - setuptools pip wheel failed with error code 1
Check /usr/lib/python2.7/site-packages/virtualenv_support directory. There should be only one version of pip/wheel/setuptools.
This is the correct set of files:
[root@server:/root]$ ll /usr/lib/python2.7/site-packages/virtualenv_support
total 1792
-rw-r--r-- 1 root root 23000 Nov 15 2016 argparse-1.4.0-py2.py3-none-any.whl
-rw-r--r-- 1 root root 0 Nov 15 2016 __init__.py
-rw-r--r-- 2 root root 150 May 10 2018 __init__.pyc
-rw-r--r-- 2 root root 150 May 10 2018 __init__.pyo
-rw-r--r-- 1 root root 1254803 Nov 15 2016 pip-9.0.1-py2.py3-none-any.whl
-rw-r--r-- 1 root root 472830 Nov 15 2016 setuptools-28.8.0-py2.py3-none-any.whl
-rw-r--r-- 1 root root 66878 Nov 15 2016 wheel-0.29.0-py2.py3-none-any.whl
This is the wrong config:
[root@server:/root]$ ll /usr/lib/python2.7/site-packages/virtualenv_support
total 3712
-rw-r--r-- 1 root root 23000 Nov 15 2016 argparse-1.4.0-py2.py3-none-any.whl
-rw-r--r-- 1 root root 0 Nov 15 2016 __init__.py
-rw-r--r-- 2 root root 150 May 10 2018 __init__.pyc
-rw-r--r-- 2 root root 150 May 10 2018 __init__.pyo
-rw-r--r-- 1 root root 1360957 Jun 26 2019 pip-19.1.1-py2.py3-none-any.whl
-rw-r--r-- 1 root root 1254803 Nov 15 2016 pip-9.0.1-py2.py3-none-any.whl
-rw-r--r-- 1 root root 472830 Nov 15 2016 setuptools-28.8.0-py2.py3-none-any.whl
-rw-r--r-- 1 root root 575966 Jun 26 2019 setuptools-41.0.1-py2.py3-none-any.whl
-rw-r--r-- 1 root root 66878 Nov 15 2016 wheel-0.29.0-py2.py3-none-any.whl
-rw-r--r-- 1 root root 21524 Jun 26 2019 wheel-0.33.4-py2.py3-none-any.wh
If you have two or more sets of pip/setuptools/wheel files, it is likely that some time ago you tried updating pip globally under root which usually should never be done if you want to keep your system consistent. You should move out of the way the files with a higher version to correct the problem.
You can read more about Python Selector here.
Comments
0 comments
Please sign in to leave a comment.