Port hplip to Python 3

Bug #1124208 reported by Barry Warsaw
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Python 2.7 is the end of the line for Python 2. As part of Ubuntu, we are trying to eliminate Python 2, at least from the default desktop and eventually from the main archive. As such, we would love to get hplip ported to Python 3, ideally 3.3.

Is there any reason that hplip would need to be bilingual (i.e. both Python 2 and 3) or can we drop Python 2 support when the port is done?

Barry Warsaw (barry)
summary: - Port to Python 3
+ Port hplip to Python 3
Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Hi Barry

We are in the process of porting hpilp to python 3. There were certain third party libraries which were not ported to python 3. Further we are looking at supporting both python 2.6 and python 3.3 in same codebase

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1124208] Re: Port hplip to Python 3

On Feb 21, 2013, at 07:33 PM, Gaurav Sood wrote:

>We are in the process of porting hpilp to python 3. There were certain
>third party libraries which were not ported to python 3. Further we are
>looking at supporting both python 2.6 and python 3.3 in same codebase

Hopefully Python 2.7 also! What about Python 3.2? (I personally only care
about 2.7 and 3.3).

Which dependencies are not yet ported? If there's anything I can do to help,
please let me know. Also, if you're going to be at Pycon 2013, I'll be
running a Python 3 porting clinic in the evenings.

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

I think there is still no official python 3 port for Python Imaging librarry and reportlab.
 We will be supporting 2.7.
Gaurav

Revision history for this message
Barry Warsaw (barry) wrote :

On Feb 22, 2013, at 06:14 PM, Gaurav Sood wrote:

>I think there is still no official python 3 port for Python Imaging librarry
>and reportlab.

Pillow is pretty good actually, and Ubuntu is packaging Pillow now for Python
2 and Python 3. It's a friendly fork that supports both, though there is a
minor backward compatibility for Python 2 issue due to the fact that the
PIL.pth file is no longer shipping. This is a good thing, though it breaks
some packages that do `import Image` instead of `import PIL.Image`. The right
fix is to use the latter, but for Python 2 on Ubuntu, we have a compat package
you can load.

reportlab is more difficult, but I think I was told that you lose only minor
functionality without it. I could be wrong about that though.

> We will be supporting 2.7.

Excellent, thanks.

Revision history for this message
Jiri Popelka (jpopelka) wrote :

See also bug #1099853

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.