Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
I attempted to install the latest PHP SDK on a CentOS v7 Linux system but it failed with the following error:
[root@ip-10-0-126-30 ~]# sudo pip install couchbase |
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support |
Collecting couchbase
|
Using cached https://files.pythonhosted.org/packages/9a/c6/da995cf19160a295730f5b975ff1c65cb9abae794e4dbc245086fb417b24/couchbase-2.5.8.tar.gz |
ERROR: Command errored out with exit status 1: |
command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k8b5DR/couchbase/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k8b5DR/couchbase/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info |
cwd: /tmp/pip-install-k8b5DR/couchbase/
|
Complete output (17 lines): |
Traceback (most recent call last):
|
File "<string>", line 1, in <module> |
File "/tmp/pip-install-k8b5DR/couchbase/setup.py", line 240, in <module> |
**setup_kw
|
File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup |
_setup_distribution = dist = klass(attrs)
|
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__ |
self.fetch_build_eggs(attrs.pop('setup_requires')) |
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs |
parse_requirements(requires), installer=self.fetch_build_egg
|
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 601, in resolve |
requirements = list(requirements)[::-1] # set up the stack |
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2839, in parse_requirements |
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec") |
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2807, in scan_list |
raise ValueError("Expected "+item_name+" in",line,"at",line[p:]) |
ValueError: ('Expected version spec in', "typing; python_version<'3.7'", 'at', "; python_version<'3.7'") |
----------------------------------------
|
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. |
Specifying version 2.5.7 of the Python SDK works:
[root@ip-10-0-126-30 ~]# sudo pip install couchbase==2.5.7 |
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support |
Collecting couchbase==2.5.7 |
Using cached https://files.pythonhosted.org/packages/38/da/629b10203f1a9b9b42bdd4554e0d436552a5ec77100499a7693df6044aa0/couchbase-2.5.7.tar.gz |
Requirement already satisfied: typing in /usr/lib/python2.7/site-packages (from couchbase==2.5.7) (3.7.4.1) |
Installing collected packages: couchbase
|
Running setup.py install for couchbase ... done |
Successfully installed couchbase-2.5.7 |
Also confirmed that I need to pip install couchbase==2.5.7 whether I use couchbase-release-1.0-4-x86_64.rpm or couchbase-release-1.0-6-x86_64.rpm
Attachments
For Gerrit Dashboard: PYCBC-653 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
114550,5 | PYCBC-653: Fix Python 2.7 pip niggle with conditional reqs | release25 | couchbase-python-client | Status: MERGED | +2 | +1 |
117967,1 | PYCBC-653: Fix Python 2.7 pip niggle with conditional reqs | master | couchbase-python-client | Status: ABANDONED | -1 | 0 |