-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
pygtk does not install correctly #16891
Comments
So there is the chance for an easy fix? |
One has to set PKG_CONFIG_PATH correctly and additionally /usr/local/lib/pkgconfig/libffi.pc needs to be present (for some reasons it is not linked correctly from Cellar). So after libffi gets fixed, the correct variable would be: |
If pygtk uses libffi, it should have |
I guess @adamv is right; would be great if you could test this @marcindulak :-) |
The problem (or feature) of the libffi.pc file missing is due the libffi formula itself. |
A good question. Does |
Yes it does |
Then, perhaps, I can make a formula for |
I understand now: homebrew sets the variables only within its own environment, so PKG_CONFIG_PATH |
Yes, Homebrew cannot set variables outside of its own process. Otherwise it would need to mess around with you You can call Often one can set the path to a specific |
I'm building pip install matplotlib outside of brew with: |
This is enough hassle. I am going to make a matplotlib formula in my |
Ok, here it comes:
Let me know if there are any problems. |
@marcindulak can you please give me feedback on the gtk backend in my matplotlib formula? @adamv the pygtk formula has libffi indirectly in its deps, so I think it's okay. Therefore, in my opinion, we can close this. I am open for rants about my matlabformula in my repo :-) |
@samueljohn there is a :tex requirement in core now |
Closing in core; thanks. |
@adamv I will note that down onto my todo list :-) |
It looks to me that there are two problems in the matplotlib formula.
|
Thanks for your feedback. Much appreciated. Will fix soonish! |
@marcindulak you mean this line --> https://github.com/samueljohn/homebrew-python/blob/master/matplotlib.rb#L75 ? To (2): Wow, good catch! |
@samueljohn I was wondering if you could help me get pygtk up and running on my mac. I've brew installed python, pygtk, gtk and also your version of matplotlib. But if I type import pygtk I get an error from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array If you have any suggestions I would be really grateful! |
Did you install matplotlib with --with-pygtk? |
This is problem reported originally at https://github.com/Homebrew/homebrew-science/issues/53
pygtk related packages do not create correct links under /usr/local/include.
Creating links as listed above results in a matplotlib working with gdk backend
(no more "ImportError: No module named _backend_gdk")
The text was updated successfully, but these errors were encountered: