Reini Urban schrieb:
> Reini Urban schrieb:
>> Yaakov (Cygwin Ports) schrieb:
>>> Ali Afshar wrote:
>>>> $ python
>>>> Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
>>>> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>>> import gtk
>>> Sorry, WFM.  Anybody else?
>> Because your 
>> /usr/src/ports/python/pygobject/python-gobject2-2.12.3-2/inst/usr/lib/python2.5/site-packages/
>>  
>>
>> path exists and ours not. And if I symlink it to the correct target path 
>> it doesn't work neither. Something else missing.
>>
>> I had a similar problem with building perl.
>> The installer should no reference to the absolute path while building 
>> it. Rather install it into the end dir (/usr/lib/python2.5/site-packages/)
>> and pick it up there. Or use chroot (which I haven't done yet).
>>
>> The problem is in /usr/lib/python2.5/site-packages/pygtk.pyo
>> $ strings pygtk.pyo
>>
>> /usr/src/ports/python/pygobject/python-gobject2-2.12.3-2/inst/usr/lib/python2.5/site-packages/pygtk.py
>>  
>>
>>
>> libxml2.pyo =>
>> /usr/src/ports/gnome/libxml/2/libxml2-2.6.29-1/inst/usr/lib/python2.5/site-packages/libxml2
>>  
>>
>> drv_libxml2.pyo =>
>> /usr/src/ports/gnome/libxml/2/libxml2-2.6.29-1/inst/usr/lib/python2.5/site-packages/drv_libxml2
>>  
>>
>>
>> And so on, for almost every .pyo file in your distro.
> 
> Temp fix for the wrong binary python modules:
> 
> cd /usr/lib/python2.5/site-packages
> (for f in `find -name \*.pyo`; do strings $f | \
>      grep /usr/src/ports/ | \
>      sed -e's,/inst/usr/lib/python2.5.*,,' ; done) | \
>   sort -u > .pkg.lst
> for f in `cat .pkg.lst`; do mkdir -p $f; ln -s /usr $f/usr; done
> 
> Then just some required dependencies are missing:
> 
> $ cygcheck gtk-2.0/gtk/_gtk.dll
>    f:\cygwin\bin\cygpangoft2-1.0-0.dll
> Error: could not find cyggdk_pixbuf-2.0-0.dll
>    f:\cygwin\bin\cygatk-1.0-0.dll
> Error: could not find cyggdk_pixbuf-2.0-0.dll
> 
> @ python-gtk2
> sdesc: "Python bindings for GTK2 and libglade (runtime)"
> ldesc: "PyGTK is a set of bindings for the GTK widget set. It provides
> an object oriented interface that is slightly higher level than the C
> one. It automatically does all the type casting and reference counting
> that you would have to do normally with the C API."
> category: Python Gnome
> requires: cygwin atk glib2 gtk2-x11 libglade2 pango python python-cairo 
> python-gobject2 python-numpy
> 
> + gdk-pixbuf2
> 
> Hmm.
> cp /usr/bin/cyggdk_pixbuf-2.dll /usr/bin/cyggdk_pixbuf-2.0-0.dll
> fixed that also.

Nope, this cp line above is wrong. We just need to install gdk-pixbuf2, 
use the "Temp fix for the wrong binary python modules" above and PyGTK 
works fine for me.

I just posted a tiny python patch to the cygwin list though to help in 
compiling more c modules.
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/
http://helsinki.at/  http://spacemovie.mur.at/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to