Ticket #135 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

prefs.py conflicts with prefs.py from Meld

Reported by: nineinchnick Owned by: somebody
Priority: minor Milestone: 0.5.0
Component: guake Version: 0.4
Keywords: prefs Cc:

Description

This file was added in version 0.40. Meld has a module by the same name. Guake prefs gets loaded first when import prefs called, breaking Meld. Please change the file name, Meld was first :-)

Change History

Changed 4 years ago by lincoln

Humm, which distro are you using. By default, guake does not install any file in a common PYTHONPATH, so I think the problem is that python modules dir of meld and guake are being added to your envirnment without needing.

Another way of fixing that is avoiding relative imports, like this:

from guake_lib import prefs

But it can make a change in meld necessary too, once its code is just doing.

import prefs

I'm on a Debian system and everything is working, I think just renaming files will not fix this problem because another file of another program can clash again if you don't fix the problem as a whole.

Anyway, if your distro and/or meld guys (if needed) don't change anything, we'll find another way to make it work.

Thanks for contributting =)

Changed 4 years ago by nineinchnick

I'm on Arch Linux. I've got Guake in /usr/lib/guake and Meld in /usr/lib/meld and those two files clash. Maybe I should report it to the package maintaner?

I did rename the file and all calls in other files and it works, at least until an update happens.

Changed 4 years ago by pingou

It seems indeed to be more a packaging bug.

Please report it to the maintainer and let us know how the issue evolve (Could you paste the link of the bug report here ? )

Thanks

Changed 4 years ago by SnapShot

I am on Arch Linux too. I have both Meld and Guake installed and everything works as it should.

Can you tell me step by step how to reproduce the problem?

Changed 4 years ago by nineinchnick

  • status changed from new to closed
  • resolution set to invalid

After clearing PYTHONPATH everything works. It was my fault after all :-)

Note: See TracTickets for help on using tickets.