Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

meld failed to build on 10.6.8 -- missing pygtk? #20644

Closed
deanmalmgren opened this issue Jun 20, 2013 · 4 comments
Closed

meld failed to build on 10.6.8 -- missing pygtk? #20644

deanmalmgren opened this issue Jun 20, 2013 · 4 comments

Comments

@deanmalmgren
Copy link

I just tried to install meld. Midway through the build it complained and, after running brew update and re-running brew install meld, meld completed the build. The trouble is that when I try to run meld from the command line, it complains about missing librarires

[unix]$ meld
Couldn't bind the translation domain. Some translations won't work.
'module' object has no attribute 'bindtextdomain'
Cannot import: pygtk
No module named pygtk

Here is a gist with my brew --config, 01.make, and brew doctor output. Any help here would be appreciated.

@jacknagel
Copy link
Contributor

If you're using the system Python, you'll have to set PYTHONPATH so that it can find the pygtk module:

export PYTHONPATH=$(brew --prefix)/lib/python2.6/site-packages:$PYTHONPATH

This should also be suggested by brew info pygtk if I'm not mistaken.

@deanmalmgren
Copy link
Author

Thanks; that fixed the problem by setting PYTHONPATH in my ~/.bashrc.

I didn't know about brew info and I suspect that others may not be aware either. Its kind of a pity that brew does not set this globally, perhaps with an appropriate entry in /etc/launchd.conf. Out of curiosity, what's the rationale for requiring brew users to manipulate their PYTHONPATH like this rather than setting it at the global level?

I'm a bit of a n00b, but I'm happy to write a patch to get this working.

@jacknagel
Copy link
Contributor

By policy we don't modify system files. But as I said, this information is printed after installing pygtk (and other things that require the same env variable to be set) as well.

@deanmalmgren
Copy link
Author

What about creating a wrapper script that sets and unsets PYTHONPATH before
and after meld execution?
On Jun 25, 2013 9:50 AM, "Jack Nagel" notifications@github.com wrote:

By policy we don't modify system files.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20644#issuecomment-19981451
.

@Homebrew Homebrew locked and limited conversation to collaborators Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants