You are not logged in.

#1 2009-02-19 16:29:55

luuuciano
Member
Registered: 2007-01-27
Posts: 310

meld do not open files... ?

Hi!

Im using kde(mod) 4.2 and meld 1.2

I select two files, then press the button... and nothing... in konsole I see the following error:

Traceback (most recent call last):
  File "/usr/lib/meld/meldapp.py", line 100, in on_response
    methods[page](paths)
  File "/usr/lib/meld/meldapp.py", line 836, in append_filediff
    doc = filediff.FileDiff(self.prefs, len(files))
  File "/usr/lib/meld/filediff.py", line 99, in __init__
    self.load_font()
  File "/usr/lib/meld/filediff.py", line 279, in load_font
    self.pixbuf_apply0 = load("button_apply0.xpm")
  File "/usr/lib/meld/filediff.py", line 278, in <lambda>
    load = lambda x: gnomeglade.load_pixbuf( paths.share_dir("glade2/pixmaps/"+x), self.pixels_per_line)
  File "/usr/lib/meld/gnomeglade.py", line 81, in load_pixbuf
    image = image.get_pixbuf()
ValueError: image should be a GdkPixbuf or empty

any idea?

I loved how meld shows the info...

luciano


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#2 2009-02-19 20:20:37

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: meld do not open files... ?

Maybe a clue, found by using Google. I don't know myself.

http://mail.opensolaris.org/pipermail/s … 01987.html

Offline

#3 2009-03-20 16:34:17

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: meld do not open files... ?

Same problem here. A rebuild using ABS did not help. I'll read the link.

Offline

#4 2009-03-20 16:40:05

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: meld do not open files... ?

That link was of no help... :S Thanx anyway.

Even building meld from svn did not helped... sad

Offline

#5 2009-03-20 17:58:01

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: meld do not open files... ?

Ok I kind of found the problem and solution.
I don't know a thing about GTK nor glade, but it seems meld is having problem loading the xpm files. Almost all icons of meld are in png format, except a couple in /usr/share/meld/glade2/pixmaps :
button_apply0.xpm
button_apply1.xpm
button_copy0.xpm
button_copy1.xpm
button_delete.xpm
close.xpm

These buttons are the icons showing the directions of the diff (left to right, right to left, etc) in the middle column of meld when comparing files (not directories).

What I did was to convert these files to png, and change the loading to the new png in /usr/lib/meld/filediff.py around line 286:

--- filediff_orig.py    2009-03-20 13:57:35.000000000 -0400
+++ /usr/lib/meld/filediff.py   2009-03-20 13:50:53.000000000 -0400
@@ -283,11 +283,11 @@
         for i in range(2):
             self.linkmap[i].queue_draw()
         load = lambda x: gnomeglade.load_pixbuf( paths.share_dir("glade2/pixmaps/"+x), self.pixels_per_line)
-        self.pixbuf_apply0 = load("button_apply0.xpm")
-        self.pixbuf_apply1 = load("button_apply1.xpm")
-        self.pixbuf_delete = load("button_delete.xpm")
-        self.pixbuf_copy0  = load("button_copy0.xpm")
-        self.pixbuf_copy1  = load("button_copy1.xpm")
+        self.pixbuf_apply0 = load("button_apply0.png")
+        self.pixbuf_apply1 = load("button_apply1.png")
+        self.pixbuf_delete = load("button_delete.png")
+        self.pixbuf_copy0  = load("button_copy0.png")
+        self.pixbuf_copy1  = load("button_copy1.png")

     def on_preference_changed(self, key, value):
         if key == "tab_size":

Now meld works...

Offline

#6 2009-03-20 18:03:55

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: meld do not open files... ?

Offline

#7 2009-04-14 14:52:41

kmacleod
Member
Registered: 2009-03-27
Posts: 12

Re: meld do not open files... ?

Same issue here.  KDEmod.  meld 1.2.1-1.   It has worked for me as of about a week ago but one of my updates seems to have broken things.

Offline

#8 2009-04-15 14:39:22

kperkins
Member
Registered: 2009-03-31
Posts: 11

Re: meld do not open files... ?

Why not use kdiff, if you're using KDE?

Offline

#9 2009-04-15 14:42:54

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: meld do not open files... ?

Meld is IMO superior  to kompare.
You cannot select text in kompare while you can fully edit files in meld. Also how meld manages comparison is better: you can propagates changes in any directions (left, right, delete) while kompare is only left to right. Until recently, kompare never saved the files, so it was useless.
I would love to see kompare on the same foot as meld, but it has a long run to go :S

Offline

#10 2009-04-15 15:14:24

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: meld do not open files... ?

same here... I am using best task resolver apps, not desktop based apps....

(thats why I have 1/2 gnome inside maybe... but, who cares?)


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#11 2009-04-15 15:25:35

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: meld do not open files... ?

hehe me too, but I would love to have "pure" kde desktop. But I'm no freak, I can tolerate gnome apps, as long as they keep quiet... tongue

Offline

#12 2009-04-15 21:41:54

kperkins
Member
Registered: 2009-03-31
Posts: 11

Re: meld do not open files... ?

big_gie wrote:

Meld is IMO superior  to kompare.
You cannot select text in kompare while you can fully edit files in meld. Also how meld manages comparison is better: you can propagates changes in any directions (left, right, delete) while kompare is only left to right. Until recently, kompare never saved the files, so it was useless.
I would love to see kompare on the same foot as meld, but it has a long run to go :S

Actually I wrote KDiff, not Kompare.  They are 2 different programs.  KDiff is very similar to meld, and doesn't need KDE , just Qt-libs.  I prefer Meld myself, because I like GTK better, but the OP asked about using something with KDE because Meld isn't working for him.  I think that KDiff would.
http://kdiff3.sourceforge.net/

Offline

#13 2009-04-15 21:44:15

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: meld do not open files... ?

haha yes my wrong wink I read kompare...
KDiff is indeed pretty nice. It's even more powerful then meld. Too powerful tongue

Offline

#14 2009-04-19 18:08:46

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: meld do not open files... ?

great, I will try kdiff too...

btw, I have tried meld 1.3.0 and it is doing the same thing...


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#15 2009-06-16 11:20:32

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: meld do not open files... ?

this problem looks like an archlinux issue, right?

it happens in liferea, and crack-attack too...

always the unrecognized .xpm format


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

#16 2009-08-19 13:22:13

fmjrey
Member
Registered: 2009-08-19
Posts: 13

Re: meld do not open files... ?

Actually the origin of this problem has been found, see FS#15890:
http://bugs.archlinux.org/task/15890

It's a bug in kdemod-shaman, as it installs mimetypes which cause incorrect file detection.
This has been reported correctly:
http://chakra-project.org/bugs/index.ph … task_id=53

Offline

#17 2009-08-19 13:36:04

luuuciano
Member
Registered: 2007-01-27
Posts: 310

Re: meld do not open files... ?

oh, great!
I have uninstalled shaman a few days ago, and did not know that... nice smile
thanks for share it


I arch, you arch, he arch, she arch, we arch, they arch...

Offline

Board footer

Powered by FluxBB