Skip to content

pythondialog is no longer available for Python 2 #139

Closed

Description

@fmarier

From the upstream page:

As of version 2.12, the reference implementation of pythondialog (which this file belongs to) requires Python 3.0 or later in the 3.x series.

This means that the pythondialog dependency cannot be fulfilled on Debian jessie and later.

There is an out of date backport, but it comes with this warning:

This version is only here to help users who are somehow forced to still use Python 2, even though Python 3.0 was released on December 3, 2008. It may be the last update for Python 2. In addition, the reference implementation is less likely to have bugs.

and it's not in Debian, nor is it likely to ever be in Debian.

Activity

  1. fmarier commented on Dec 21, 2014

    @fmarier
    ContributorAuthor

    This will be a blocker for getting letsencrypt into Debian. The options I can see are:

    1. move the client to Python 3
    2. switch to a different library
    3. bundle the outdated version of pythondialog with the letsencrypt client

    Option 3 would be my least preferred one.

  2. ThomasWaldmann commented on Jan 4, 2015

    @ThomasWaldmann
    Contributor

    I think letsencrypt should work on py3 (>=3.3) and py2 (2.7) for now. This can be done using the same source code and some _compat.py lib that has some needed compatibility code (see pocoo projects porting).

    But first dependencies have to be checked (do all support py3?) and test coverage has to be increased.
    Also, if python3 support is wanted, a separate ticket should be opened for this.

  3. pde commented on Jan 5, 2015

    @pde
    Member

    Python3 support is definitely a different issue to python2 dialog on Debian! One thing to be clear about is that we will not be able to ship a Python3-only project anytime in the foreseeable future; there are two many systems that are py2 only (eg, old Macs), and we need to support those.

    So @fmarier let me add another option:

    4. we ship our own clean, up-to-date Debian backport of python2-dialog

    So my instincts are option 4 > option 3 > option 1. If someone really believes that coding for py2 and py3 (perhaps with six?) is really easier than just coding for py2, I'd consider reordering but it just isn't intuitive to me to to do work to support a version we can't depend on.

    I don't know what to say about option 2. Which alternative library would we use and why?

  4. fmarier commented on Jan 5, 2015

    @fmarier
    ContributorAuthor

    What's the target for the letsencrypt client? Servers? What's the oldest version of RHEL you want to support? In Debian land, both squeeze and lucid LTS have Python 2.6 and 3.1.

    If I understand you correctly, I think your option 4 is what I meant by option 3:

    • by "we ship" I assume you mean "we bundle into the letsencrypt source package" and
    • by "up-to-date" I assume you mean the latest (outdated and no longer maintained compared to the Python 3 version) upstream release of python2-dialog?

    It's certainly not a deal breaker, which I why I included it in the list of reasonable options, but a Python 3 version would be much nicer. Anyways, we can solve the immediate problem with option 3 and then work towards making it better in a later release.

  5. ThomasWaldmann commented on Jan 6, 2015

    @ThomasWaldmann
    Contributor

    @pde noone ever said that coding for py2 AND py3 is easier than for py2 only. or that py3-only is an option for now.

    about "six": back when the pocoo stuff was ported, six was not complete enough and own compat code had to be added. also, for timing reasons, we wouldn't want to wait until the missing stuff was added to six, so the way that was chosen (by armin ronacher) was to have an own _compat.py module that is part of the project that has all the needed stuff. One outside dependency / version dependency less.

    @fmarier if one wants to support py3 < 3.3, one has to add lots of wrappers around "text" literals (unicode in py2, str in py3) as only 3.3+ supports u"" and these wrappers make the src rather ugly.

  6. fmarier commented on Mar 22, 2015

    @fmarier
    ContributorAuthor

    I'm currently pursuing option 5:

    5. maintain the python2-pythondialog backport in Debian until we can move away from it

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780929

    There is of course no guarantee that my upload will be approved.

  7. pde commented on Apr 16, 2015

    @pde
    Member

    Should we do anything to encourage acceptance of that upload?

  8. fmarier commented on Apr 16, 2015

    @fmarier
    ContributorAuthor

    @pde I would give it a bit more time because sometimes these things take a while. I've just added a comment on the bug though in case that's useful.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions