Python2.7 transition and missing DialogAptKey in software-properties-gtk

Bug #689318 reported by Stefano Rivera
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gapti
Fix Committed
Undecided
Unassigned
gapti (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: gapti

gapti, as it currently stands in Ubuntu, hardcodes a Python version dependency on 2.6.

There is a new upstream version (which was targetted at jaunty in LP: #340901) which would help here (it improves the packaging a lot).

I've taken the liberty of improving it further (Use dh_python2, dh7 minimal rules), and have uploaded a proposed branch to lp:~stefanor/gapti/py27transition.

gapti (0.0.3ubuntu1) natty; urgency=low

  [ Savvas Radevic ]
  * Bug-fix release.
  * python 2.6 transition (LP: #340901)
    + debian/control: Build-Depends: python-dev, python-support
    + gapti-root: Fixed UpdateManager.SimpleGladeApp
    + Edited files directly, shebangs: #!/usr/bin/python
    + Modified files directly using: 2to3-2.6 -w *
    + Replaced commands.getoutput with subprocess.Popen().communicate()
    + Replaced lines with spaces (\s+) with empty lines
  * debian/control:
    + Standards-Version: 3.8.0 (No changes required)
    + debhelper (>= 7)
  * debian/rules: Removed sed command that changed shebangs

  [ Stefano Rivera ]
  * Python 2.7 transition: Remove python version restrictions.
  * Convert to dh_python2.
    - Install as a private module in /usr/share/gapti
  * Use minimal dh7 rules.
  * Use 3.0 (native) source format.
  * Bumped Standards-Version to 3.9.1:
    - Point to versioned common-licence (GPL-3).
  * debian/control:
    - Depend on software-properties-gtk.
    - Add Homepage.

However, it still doesn't work, as software-properties-gtk has had some API changes:

Traceback (most recent call last):
  File "/usr/bin/gapti", line 12, in <module>
    import utils
  File "/usr/share/gapti/gapti/utils.py", line 6, in <module>
    from softwareproperties.gtk.DialogAptKey import DialogAddKey as apt_key
ImportError: No module named DialogAptKey

So my proposed branch is incomplete, and further work is required, or gapti should be removed from Ubuntu.

Tags: python27

Related branches

Revision history for this message
Savvas Radevic (medigeek) wrote :

Thanks for the patch, but.. if Jerome Haltom (user wasabi) agrees, I would like to remove gapti from the ubuntu packages. He is the upstream developer though, not me. :)

Revision history for this message
Savvas Radevic (medigeek) wrote :

Comment #8: https://bugs.launchpad.net/ubuntu/+source/gapti/+bug/340901/comments/8
"Hi. Sorry, haven't worked on this in ages. Actually wasn't aware people were using it. Really wanted to get back into it. You happen to clean it up?

I'll just add you to the launchpad group and you can commit it."

Revision history for this message
Stefano Rivera (stefanor) wrote :

Removal sounds like a good option

Changed in gapti:
status: New → Fix Committed
Revision history for this message
Savvas Radevic (medigeek) wrote :

Stefano, I just opened a new bug to remove the package: https://bugs.launchpad.net/ubuntu/+source/gapti/+bug/692010
Do you know the process? Who do I have to subscribe to the bug etc.?
Thanks once more for your help. :)

Revision history for this message
Stefano Rivera (stefanor) wrote :

> Do you know the process?

I'll sponsor it.

Revision history for this message
Matthias Klose (doko) wrote :

package removed in natty, see bug 692010

Changed in gapti (Ubuntu):
status: New → Won't Fix
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.