Thanks so much for responding.

I did a listing on the related gtk packages. It seems everything is
not in the python2.5 directory. Instead they are in the python2.4
directory. Here is my listing:

$ ls /usr/lib/python2.4/site-packages/
Numeric  Numeric.pth  gtk-2.0  pygtk.pth  pygtk.py  pygtk.pyc  pygtk.pyo

$ ls /usr/lib/python2.4/site-packages/gtk-2.0/
atk.dll    dsextras.py   gobject.dll    gtk          pango.la
atk.dll.a  dsextras.pyc  gobject.dll.a  pango.dll
atk.la     dsextras.pyo  gobject.la     pango.dll.a

$ ls /usr/lib/python2.4/site-packages/gtk-2.0/gtk
__init__.py   _gtk.dll    compat.py   glade.dll    keysyms.py
__init__.pyc  _gtk.dll.a  compat.pyc  glade.dll.a  keysyms.pyc
__init__.pyo  _gtk.la     compat.pyo  glade.la     keysyms.pyo

$ ls /usr/lib/python2.5/site-packages/
Brlapi-0.5.2-py2.5.egg-info
Codeville
Crypto
Pyrex
Pyrex-0.9.5.1a-py2.5.egg-info
README
_lcms.dll
_lcms.la
archivemail-0.7.0-py2.5.egg-info
brlapi.dll
bzr-1.4-py2.5.egg-info
bzrlib
cvs2svn-2.1.1-py2.5.egg-info
cvs2svn_lib
cvs2svn_rcsparse
drv_libxml2.py
drv_libxml2.pyc
drv_libxml2.pyo
easy-install.pth
feedparser-4.1-py2.5.egg-info
feedparser.py
feedparser.pyc
fetchmailconf.py
fetchmailconf.pyc
fetchmailconf.pyo
flawfinder-1.27-py2.5.egg-info
getmailcore
hgext
lcms.py
lcms.pyc
lcms.pyo
libsvn
libxml2.py
libxml2.pyc
libxml2.pyo
libxml2mod.dll
libxml2mod.la
libxslt.py
libxslt.pyc
libxslt.pyo
libxsltmod.dll
libxsltmod.la
mercurial
mercurial-1.0.2-py2.5.egg-info
paramiko
paramiko-1.7.4-py2.5.egg-info
planet
pycopia_SMI-1.0a2-py2.5-cygwin-1.5.25-i686.egg
pycopia_aid-1.0a3-py2.5.egg
rdiff_backup
rdiff_backup-1.1.15-py2.5.egg-info
setuptools-0.6c5-py2.5.egg
setuptools.pth
spambayes
stgit
stgit-0.13-py2.5.egg-info
svn
urlgrabber
vcpx

If a python version mismatch is the problem, how can I obtain the
appropriate packages for python2.5?
So in your case, you just had to include the directories you mentioned
in sys.path, and everything imported successfully ("import gtk",
"import pygtk")?

Thanks a bunch,
Patty

On Sun, Sep 7, 2008 at 12:43 AM, Michiel de Hoon <[EMAIL PROTECTED]> wrote:
> Dear Patty,
>
> Please reply to the list instead of to my email address only. That way, this 
> discussion will end up in the archives, and can be useful to others trying to 
> use pygtk on Cygwin. Also, please be more specific; I still don't know how 
> you are trying to import pygtk. It's best to simply copy and paste your 
> commands and the output so we know exactly what's going on.
>
> To get back to your question, you could check if all the files are in the 
> location where Python expects them. For comparison, these are my installed 
> pygtk files on Cygwin:
>
> $ ls -R -1 /usr/lib/python2.5/site-packages/gtk-2.0/
> /usr/lib/python2.5/site-packages/gtk-2.0/:
> atk.a
> atk.dll*
> atk.dll.a*
> atk.la*
> dsextras.py
> dsextras.pyc
> dsextras.pyo
> gobject/
> gtk/
> gtkunixprint.a
> gtkunixprint.dll*
> gtkunixprint.dll.a*
> gtkunixprint.la*
> pango.a
> pango.dll*
> pango.dll.a*
> pango.la*
> pangocairo.a
> pangocairo.dll*
> pangocairo.dll.a*
> pangocairo.la*
>
> /usr/lib/python2.5/site-packages/gtk-2.0/gobject:
> __init__.py
> __init__.pyc
> __init__.pyo
> _gobject.a
> _gobject.dll*
> _gobject.dll.a*
> _gobject.la*
> constants.py
> constants.pyc
> constants.pyo
> option.py
> option.pyc
> option.pyo
> propertyhelper.py
> propertyhelper.pyc
> propertyhelper.pyo
>
> /usr/lib/python2.5/site-packages/gtk-2.0/gtk:
> __init__.py
> __init__.pyc
> __init__.pyo
> _gtk.a
> _gtk.dll*
> _gtk.dll.a*
> _gtk.la*
> _lazyutils.py
> _lazyutils.pyc
> _lazyutils.pyo
> compat.py
> compat.pyc
> compat.pyo
> deprecation.py
> deprecation.pyc
> deprecation.pyo
> keysyms.py
> keysyms.pyc
> keysyms.pyo
>
> Is anything missing on your system?
>
> --Michiel.
>
> --- On Sat, 9/6/08, Patty Ackermann <[EMAIL PROTECTED]> wrote:
>
>> From: Patty Ackermann <[EMAIL PROTECTED]>
>> Subject: Re: [pygtk] installing pygtk on cygwin
>> To: [EMAIL PROTECTED]
>> Date: Saturday, September 6, 2008, 3:13 PM
>> thanks for replying.
>>
>> well i found out that i can import pygtk fine
>> (/usr/lib/python2.5/site-pacakges/... in my sys.path).
>> however, i am
>> having a hard time importing gtk. it specifically states
>> that "no
>> module found: gtk".
>>
>> thanks in advance.
>>
>> -patty
>>
>> On Fri, Sep 5, 2008 at 8:54 PM, Michiel de Hoon
>> <[EMAIL PROTECTED]> wrote:
>> > I have PyGTK installed on Cygwin and it is working
>> fine.
>> > Can you let us know exactly where you stuck? You
>> should post exactly what you do when you get the error
>> message so we can replicate it. Otherwise, it will be
>> difficult to help you.
>> >
>> > --Michiel.
>> >
>> > --- On Fri, 9/5/08, [EMAIL PROTECTED]
>> <[EMAIL PROTECTED]> wrote:
>> >
>> >> From: [EMAIL PROTECTED]
>> <[EMAIL PROTECTED]>
>> >> Subject: [pygtk] installing pygtk on cygwin
>> >> To: [email protected]
>> >> Date: Friday, September 5, 2008, 3:44 PM
>> >> hi,
>> >>
>> >> sorry to rehash this issue but i am still getting
>> "no
>> >> module found: pygtk"
>> >> with cygwin (installed with everything). if anyone
>> has got
>> >> pygtk to work on
>> >> cygwin, i would greatly appreciate any advice. it
>> might
>> >> have something to
>> >> do with the PATH variable, but i thought i set it
>> >> correctly. i know there
>> >> are other ways to get pygtk installed without
>> cygwin, but i
>> >> use cygwin
>> >> specifically for my code.
>> >>
>> >> thanks in advance,
>> >> patty
>> >> _______________________________________________
>> >> pygtk mailing list   [email protected]
>> >> http://www.daa.com.au/mailman/listinfo/pygtk
>> >> Read the PyGTK FAQ:
>> http://www.async.com.br/faq/pygtk/
>> >
>> >
>> >
>> >
>
>
>
>
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to