[ https://issues.apache.org/jira/browse/KUDU-2442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476727#comment-16476727 ]
Mike Percy commented on KUDU-2442: ---------------------------------- OK, there is some workaround to make it work on EL6. The problem stems from the Python core team dropping support for Python 2.6. # pip should be upgraded to version 9.0.3 # The following requirements file should be used to install the rest of the dependencies: {code:java} py < 1.5.0 pytest < 3.3, > 2.8 pytest-runner < 3.0 cython == 0.26.1 six unittest2 pytz # This is a dependency of pytest, but if we don't list it here, python 2.6 # virtualenvs will fail in build_ext with this exception: # # pkg_resources.DistributionNotFound: The 'setuptools_scm>=1.15.0' distribution was not found and is required by the application # # See https://github.com/pypa/setuptools_scm/issues/209 for more details. setuptools_scm {code} Finally, because EL6 has an old version of GCC, and there is native code that must be compiled, devtoolset-3 must be used to install kudu-python: {code:java} scl enable devtoolset-3 'pip install kudu-python' {code} > pip install kudu-python broken on EL6 > ------------------------------------- > > Key: KUDU-2442 > URL: https://issues.apache.org/jira/browse/KUDU-2442 > Project: Kudu > Issue Type: Improvement > Components: python > Affects Versions: 1.7.0 > Reporter: Mike Percy > Priority: Major > > pip install kudu-python appears to be broken on EL6 / CentOS 6 due to > end-of-life of Python 2.6. The latest versions of pip (10.x) don't seem to > work on Python 2.6 and pip can't seem to find pytest-runner when I install it > (maybe I am missing something): > {code:java} > [mpercy@vc1320 lib64]$ pip install --user pytest-runner > You are using pip version 7.1.0, however version 10.0.1 is available. > You should consider upgrading via the 'pip install --upgrade pip' command. > Collecting pytest-runner > /usr/lib/python2.6/site-packages/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 > /usr/lib/python2.6/site-packages/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 > /usr/lib/python2.6/site-packages/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 > https://files.pythonhosted.org/packages/72/a4/d7a5738a3096f22a98bec1609e237b250ebff04e5ea2930305d485337263/pytest_runner-4.2-py2.py3-none-any.whl > Installing collected packages: pytest-runner > Successfully installed pytest-runner-4.2 > [mpercy@vc1320 lib64]$ pip install --user kudu-python > You are using pip version 7.1.0, however version 10.0.1 is available. > You should consider upgrading via the 'pip install --upgrade pip' command. > Collecting kudu-python > Using cached > https://files.pythonhosted.org/packages/20/4c/2508d47f1aa12df7e63a587945d63e468dc4e4896f1acfc99ea91b5af909/kudu-python-1.7.0.tar.gz > Complete output from command python setup.py egg_info: > Building from system prefix /usr/local > Couldn't find index page for 'pytest-runner' (maybe misspelled?) > No local packages or download links found for pytest-runner > Traceback (most recent call last): > File "<string>", line 20, in <module> > File "/tmp/pip-build-FHBhhi/kudu-python/setup.py", line 172, in <module> > test_suite="kudu.tests" > File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup > _setup_distribution = dist = klass(attrs) > File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 221, in > __init__ > self.fetch_build_eggs(attrs.pop('setup_requires')) > File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 245, in > fetch_build_eggs > parse_requirements(requires), installer=self.fetch_build_egg > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 538, in resolve > dist = best[req.key] = env.best_match(req, self, installer) > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 780, in > best_match > return self.obtain(req, installer) # try and download/install > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 792, in obtain > return installer(requirement) > File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 293, in > fetch_build_egg > return cmd.easy_install(req) > File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", > line 466, in easy_install > raise DistutilsError(msg) > distutils.errors.DistutilsError: Could not find suitable distribution for > Requirement.parse('pytest-runner') > ---------------------------------------- > Command "python setup.py egg_info" failed with error code 1 in > /tmp/pip-build-FHBhhi/kudu-python{code} > See also KUDU-1705 -- This message was sent by Atlassian JIRA (v7.6.3#76005)