Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-853

livy-python-api module build failed due to old version of pip and setuptools

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.7.0
    • 0.9.0
    • Build
    • None

    Description

      Build https://travis-ci.com/github/apache/incubator-livy/jobs/498541463 failed due to tests_require in setup.py even for no related change. Stacktrace as below:

      Couldn't find index page for 'pytest-runner' (maybe misspelled?)
      No local packages or working download links found for pytest-runner
      Traceback (most recent call last):
      File "setup.py", line 58, in <module>
      tests_require=['pytest']
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
      _setup_distribution = dist = klass(attrs)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 318, in _init_
      self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 375, in fetch_build_eggs
      replace_conflicting=True,
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_init_.py", line 851, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_init_.py", line 1123, in best_match
      return self.obtain(req, installer)
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_init_.py", line 1135, in obtain
      return installer(requirement)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 443, in fetch_build_egg
      return cmd.easy_install(req)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 667, in easy_install
      raise DistutilsError(msg)
      distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')

      It seems caused by old version of pip and setuptools for python2

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            warrenzhu25 Zhongwei Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m