Ubuntu

Current version incompatible with Python2.7

Reported by Stephen Muss on 2011-04-04
88
This bug affects 15 people
Affects Status Importance Assigned to Milestone
python-meld3 (Debian)
Fix Released
Unknown
python-meld3 (Ubuntu)
Medium
Jessica McKellar
Natty
Medium
Jessica McKellar
Oneiric
Medium
Jessica McKellar
Precise
Undecided
Unassigned
supervisor (Ubuntu)
Medium
Jessica McKellar
Natty
Medium
Jessica McKellar
Oneiric
Medium
Jessica McKellar
Precise
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

apport information

tags: added: apport-collected natty
description: updated
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?

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?

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.

justin randell (justin-randell) wrote :

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

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

Another workaround:

sudo apt-get install python-setuptools
sudo easy_install elementtree

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) on 2011-10-02
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) on 2011-10-02
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)
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.

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
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.

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
Daniel Holbach (dholbach) wrote :

Natty fix is in the SRU queue, unsubscribing sponsors.

Changed in python-meld3 (Debian):
status: Unknown → New

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
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) on 2013-05-18
Changed in python-meld3 (Ubuntu Natty):
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
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.