New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.0.0b2 won't run on Python 2.6 #5152

Closed
RadekBiba opened this Issue Apr 3, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@RadekBiba

RadekBiba commented Apr 3, 2018

  • Pip version: 10.0.0b2
  • Python version: 2.6.6
  • Operating system: Red Hat Enterprise Linux Server release 6.9 (Santiago)

Description:

Pip won't run due to invalid syntax.

What I've run:

pip --version
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==10.0.0b2', 'console_scripts', 'pip')()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.6/site-packages/pip-10.0.0b2-py2.6.egg/pip/_internal/__init__.py", line 42, in <module>
    from pip._internal import cmdoptions
  File "/usr/lib/python2.6/site-packages/pip-10.0.0b2-py2.6.egg/pip/_internal/cmdoptions.py", line 16, in <module>
    from pip._internal.index import (
  File "/usr/lib/python2.6/site-packages/pip-10.0.0b2-py2.6.egg/pip/_internal/index.py", line 526
    {str(c.version) for c in all_candidates},
                      ^
SyntaxError: invalid syntax

I see no news about version 10 at https://pip.pypa.io/en/stable/news/, and the latest 9.x release actually had a fix for a compatibility issue. Is version 10 still supposed to be compatible with Python 2.6?

@pfmoore

This comment has been minimized.

Member

pfmoore commented Apr 3, 2018

10.0 drops support for Python 2.6. See https://github.com/pypa/pip/blob/release/10.0.0/NEWS.rst#deprecations-and-removals.

It's noted in the "latest" version of the docs (https://pip.pypa.io/en/latest/installing/#python-and-os-compatibility) which will be promoted to "stable" once pip 10 is released.

@RadekBiba

This comment has been minimized.

RadekBiba commented Apr 3, 2018

Thanks, @pfmoore . I'll make sure we're installing pip==9.0.3 on RHEL 6.

@RadekBiba RadekBiba closed this Apr 3, 2018

@pfmoore

This comment has been minimized.

Member

pfmoore commented Apr 3, 2018

Thanks @RadekBiba - I also filed #5153 because we don't currently seem to have a way of publishing the beta release notes in advance of the release, which would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment