meld crashed with AttributeError in <module>()

Bug #360097 reported by Crushyerbones on 2009-04-12
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
meld (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: meld

Meld crashes with an AtributeError. Could it be related to https://bugs.launchpad.net/ubuntu/+source/meld/+bug/250525 ? I have a lot of Latex packages and I believe I've seen the word gettex somewhere else.

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/meld
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: meld 1.2-0ubuntu1
PackageArchitecture: all
ProcCmdline: python /usr/bin/meld
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
PythonArgs: ['/usr/bin/meld']
SourcePackage: meld
Title: meld crashed with AttributeError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/meld", line 38, in <module>
     gettext.bindtextdomain("meld", paths.locale_dir())
 AttributeError: 'module' object has no attribute 'locale_dir'
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Crushyerbones (crushyerbones) wrote :
tags: removed: need-duplicate-check
visibility: private → public
VinceLe (legoll) wrote :

Yes, this is certainly the same bug.

Could you send the output of
python -c "import misc; print misc.__file__"
as Adam Collar asked in the other bug

Crushyerbones (crushyerbones) wrote :

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named misc

VinceLe (legoll) wrote :

Sorry I cut'n'pasted without even looking...

please do:
python -c "import paths; print paths.__file__"

Crushyerbones (crushyerbones) wrote :

I figured something was wrong :p

/var/lib/python-support/python2.6/paths.pyc

VinceLe (legoll) wrote :

could you try something to help pinpoint the bug ?

edit /usr/bin/meld, at line 32, you should see something like:

sys.path += [ "/usr/lib/meld" ]

try to replace the line with:

sys.path[0:0] = [ "/usr/lib/meld" ]

just replace "+=" with "[0:0] ="
and launch meld again, the same way as when it was failing, and report.

We're in the process of making a new release, so this one should be fixed before.

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

Other bug subscribers