Installing Gtk+ On Mac Osx 10.11.4 El-capitan
Solution 1:
I've run into this issue as well and am not sure what causes it. We had a discussion on the gtk-osx-devel mailing list some time ago: https://mail.gnome.org/archives/gtk-osx-devel-list/2015-April/msg00000.html
Summary: For some reason the libxml package isn't installing the Python module in the right place. To work around it, when itstool fails, choose the "start a shell" option and run the following commands:
cd ../libxml/python
make install
exit
Then try to continue with the build.
Solution 2:
I also had this issue and tried ptomato's answer and it didn't work for me. But I found the right .py file:
find ~ -iname "libxml2.py"
~/gtk/source/libxml2-2.9.8/python/libxml2.py
~/gtk/inst/lib/python3.6/site-packages/libxml2.py
And copied it and the libxml2mod library it needs, over to the python2.7 site packages:
cp ~/gtk/source/libxml2-2.9.8/python/libxml2.py ~/gtk/inst/lib/python2.7/site-packages/
cp ~/.cache/jhbuild/build/libxml2-2.9.8/python/.libs/libxml* ~/gtk/inst/lib/python2.7/site-packages/
I don't know (or care) why the libxml2/python makefile can't install it into the right place. However I'm leaving this here so I don't forget and run into the same problem next time.
Post a Comment for "Installing Gtk+ On Mac Osx 10.11.4 El-capitan"