Current version incompatible with Python2.7

Bug #749880 reported by Stephen Muss
88
This bug affects 15 people
Affects Status Importance Assigned to Milestone
python-meld3 (Debian)
Fix Released
Unknown
python-meld3 (Ubuntu)
Fix Released
Medium
Jessica McKellar
Natty
Invalid
Medium
Jessica McKellar
Oneiric
Fix Released
Medium
Jessica McKellar
Precise
Invalid
Undecided
Unassigned
supervisor (Ubuntu)
Invalid
Medium
Jessica McKellar
Natty
Invalid
Medium
Jessica McKellar
Oneiric
Invalid
Medium
Jessica McKellar
Precise
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-meld3

The current packaged version (0.6.5-3build1) of python-meld3 is incompatible with Python2.7 and so needs to be updated for Natty. A similar problem was fixed for Fedora 14 (see https://bugzilla.redhat.com/show_bug.cgi?id=652890).

Updating the package to version 0.6.7 resolves this issue.

Below is the Python traceback received when attempting to start the supervisord deamon which relies on meld3:

Unlinking stale socket /var/run/supervisor.sock
Traceback (most recent call last):
  File "env/bin/supervisord", line 9, in <module>
    load_entry_point('supervisor==3.0a10', 'console_scripts', 'supervisord')()
  File "/srv/env/lib/python2.7/site-packages/supervisor/supervisord.py", line 372, in main
    go(options)
  File "/srv/env/lib/python2.7/site-packages/supervisor/supervisord.py", line 382, in go
    d.main()
  File "/srv/env/lib/python2.7/site-packages/supervisor/supervisord.py", line 95, in main
    self.run()
  File "/srv/env/lib/python2.7/site-packages/supervisor/supervisord.py", line 105, in run
    self.options.openhttpservers(self)
  File "/srv/env/lib/python2.7/site-packages/supervisor/options.py", line 1055, in openhttpservers
    self.httpservers = self.make_http_servers(supervisord)
  File "/srv/env/lib/python2.7/site-packages/supervisor/options.py", line 1258, in make_http_servers
    return make_http_servers(self, supervisord)
  File "/srv/env/lib/python2.7/site-packages/supervisor/http.py", line 808, in make_http_servers
    from web import supervisor_ui_handler
  File "/srv/env/lib/python2.7/site-packages/supervisor/web.py", line 29, in <module>
    import meld3
  File "/usr/lib/pymodules/python2.7/meld3/__init__.py", line 2, in <module>
    from meld3 import parse_xml
  File "/usr/lib/pymodules/python2.7/meld3/meld3.py", line 27, in <module>
    from xml.etree.ElementTree import fixtag
ImportError: cannot import name fixtag

Uninstalling python-meld3 and reinstalling from source version 0.6.7 fixed the problem for me and should be addressed for the Natty release.
---
Architecture: amd64
DistroRelease: Ubuntu 11.04
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
Package: python-meld3 0.6.5-3build1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Tags: natty
Uname: Linux 2.6.38-7-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Stephen Muss (stephenmuss) wrote : Dependencies.txt

apport information

tags: added: apport-collected natty
description: updated
Revision history for this message
László Monda (mondalaci) wrote :

So now what? I cannot find the python-meld3 0.6.7 package anywhere. Should I build it from source?

Revision history for this message
justin randell (justin-randell) wrote :

I have exactly the same error, and same question - what is the next step? Are we going to need to build our own package?

Revision history for this message
Stephen Muss (stephenmuss) wrote :

My suggestion is if you urgently need to use supervisor or another package dependent on meld3 to install from source.

Download the latest source code for meld3 and run python setup.py install.

You should then be able to install the supervisor package and have it working until this particular bug is patched.

Revision history for this message
justin randell (justin-randell) wrote :

Stephen - thanks, just installed the meld3 0.6.7 and it works fine.

Revision history for this message
Marcos Sánchez Provencio (rapto) wrote :

Another workaround is to change the first line in /usr/bin/supervisord to:
#! /usr/bin/python2.6

Revision history for this message
jorgen jorgensen (jgj-barskdata) wrote :

Another workaround:

sudo apt-get install python-setuptools
sudo easy_install elementtree

Revision history for this message
Scott Ritchie (scottritchie) wrote :

Natty should get a one-line patch to use 2.6, Oneiric should get a later version as discussed above (currently 2.5 is still in Debian, so preferably update it there and sync).

Concordantly, I am opening two release tasks.

Changed in python-meld3 (Ubuntu Natty):
status: New → Confirmed
Changed in python-meld3 (Ubuntu):
status: New → Confirmed
Luke Faraone (lfaraone)
Changed in python-meld3 (Ubuntu Natty):
status: Confirmed → Won't Fix
Changed in python-meld3 (Ubuntu Oneiric):
status: Confirmed → Won't Fix
Changed in supervisor (Ubuntu Natty):
status: New → Triaged
Changed in supervisor (Ubuntu Oneiric):
status: New → Triaged
Changed in supervisor (Ubuntu Natty):
importance: Undecided → Medium
Changed in supervisor (Ubuntu Oneiric):
importance: Undecided → Medium
Changed in supervisor (Ubuntu Natty):
assignee: nobody → Jessica McKellar (jesstess)
Changed in supervisor (Ubuntu Oneiric):
assignee: nobody → Jessica McKellar (jesstess)
Luke Faraone (lfaraone)
Changed in python-meld3 (Ubuntu Natty):
status: Won't Fix → Triaged
Changed in python-meld3 (Ubuntu Oneiric):
status: Won't Fix → Triaged
Changed in supervisor (Ubuntu Natty):
status: Triaged → Invalid
Changed in supervisor (Ubuntu Oneiric):
status: Triaged → Invalid
Changed in python-meld3 (Ubuntu Oneiric):
importance: Undecided → Medium
Changed in python-meld3 (Ubuntu Natty):
importance: Undecided → Medium
assignee: nobody → Jessica McKellar (jesstess)
Changed in python-meld3 (Ubuntu Oneiric):
assignee: nobody → Jessica McKellar (jesstess)
Revision history for this message
Jessica McKellar (jesstess) wrote :

I applied most of commit afe92611 from https://github.com/Supervisor/meld3, ran the meld3 test suite, and installed supervisor with this updated version installed to verify that supervisord would run without error during post-installation.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "LP749880.diff" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks for your patch! This looks fine. I made a couple of minor changelog adjustments: I changed the version to "0.6.5-3ubuntu1" (we don't need to preserve the "build1" bit), and I changed "LP" to "LP:" so that the upload will close this bug. I also ran 'update-maintainer' to update debian/control per https://wiki.ubuntu.com/DebianMaintainerField. These are small and routine enough changes that I've gone ahead and uploaded this in your name.

I'm going to send this patch to Debian, and also prepare a matching update for Natty using the same patch. I think this patch is well-contained enough that we don't need to take a different approach such as reverting supervisor to Python 2.6.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-meld3 - 0.6.5-3ubuntu1

---------------
python-meld3 (0.6.5-3ubuntu1) oneiric; urgency=low

  * Apply most of commit afe92611 upstream to make the package compatible
    with Python 2.7. (LP: #749880)
 -- Jessica McKellar <email address hidden> Sun, 02 Oct 2011 16:08:55 -0400

Changed in python-meld3 (Ubuntu Oneiric):
status: Triaged → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

Natty fix is in the SRU queue, unsubscribing sponsors.

Changed in python-meld3 (Debian):
status: Unknown → New
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Stephen, or anyone else affected,

Accepted python-meld3 into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in python-meld3 (Ubuntu Natty):
status: Triaged → Fix Committed
tags: added: verification-needed
Changed in python-meld3 (Debian):
status: New → Fix Committed
Changed in python-meld3 (Debian):
status: Fix Committed → Fix Released
Revision history for this message
PA Parent (paparent) wrote :

Hi,

I just got a fresh Natty installation from a VPS provider. I have python-meld3 version 0.6.5-3build1 and the bug is still there. I know I can do a easy_install meld3, but reading this thread, it should be fixed, isn't it?

dino99 (9d9)
Changed in python-meld3 (Ubuntu Natty):
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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