[pygtk] installing pygtk on cygwin

Michiel de Hoon mjldehoon at yahoo.com
Mon Sep 22 15:49:40 WST 2008


I have seen that error before.... I am not 100% sure but I think this was due to some DLL confusion. To check it, run cygcheck on _gobject.dll:

cygcheck /usr/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.dll

You will get a list of DLLs that are used by _gobject.dll:

C:\cygwin/lib\python2.5/site-packages/gtk-2.0/gobject/_gobject.dll
  C:\cygwin\bin\cygwin1.dll
    C:\WINDOWS\system32\ADVAPI32.DLL
      C:\WINDOWS\system32\ntdll.dll
      C:\WINDOWS\system32\KERNEL32.dll
      C:\WINDOWS\system32\RPCRT4.dll
        C:\WINDOWS\system32\Secur32.dll
  C:\cygwin\bin\libpython2.5.dll
  C:\cygwin\usr\local\bin\cygglib-2.0-0.dll
    C:\cygwin\bin\cygiconv-2.dll
    C:\cygwin\bin\cygintl-8.dll
  C:\cygwin\usr\local\bin\cyggobject-2.0-0.dll
  C:\cygwin\usr\local\bin\cyggthread-2.0-0.dll

Then, check your system to see 1) that each DLL is actually at the location shown by cygcheck, and 2) that you don't have a second copy of any of these DLLs. For example, you should have one and only one file called cygglib-2.0-0.dll on your system.

> what is the mirror that you use?

I am not using a mirror; I compiled pygtk and its dependencies myself.

--Michiel.


--- On Mon, 9/22/08, Patty Ackermann <patty.ackermann at gmail.com> wrote:

> From: Patty Ackermann <patty.ackermann at gmail.com>
> Subject: Re: re: installing pygtk on cygwin
> To: mjldehoon at yahoo.com
> Cc: pygtk at daa.com.au
> Date: Monday, September 22, 2008, 1:33 AM
> Michiel,
> Again, I appreciate all your help. After ensuring my paths
> are set correctly
> and even performing the import command in the same
> directory as gobject, I
> get the following error:
> 
> >>> import gobject
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "__init__.py", line 30, in <module>
>     from gobject.constants import *
>   File "constants.py", line 22, in <module>
>     from _gobject import type_from_name
> ImportError: No such process
> 
> Do you think this might be an installation issue? If this
> is the issue, what
> is the mirror that you use (this question should probably
> be asked a long
> time ago)?
> 
> Again, thanks a million.
> 
> -Patty
> 
> On Sat, Sep 20, 2008 at 7:12 AM, Michiel de Hoon
> <mjldehoon at yahoo.com>
> wrote:
> >> I seem  to have everything in the same structure
> as you mentioned
> >> except .dll.a  and .a files. Is this my issue?
> >
> > This should not be a problem. The important thing are
> the .dll files and
> the .py files.
> >
> >> Plus, do I also need to execute this on xterm?
> >
> > I am not sure how Cygwin's pyGTK is compiled
> (specifically, if it uses X11
> or Windows directly). I compiled pyGTK and its dependencies
> myself on
> Cygwin; it uses Windows directly and therefore doesn't
> need xterm. The easy
> thing is for you to try on xterm and see if it works there.
> >
> > Anyway, the error message you're getting says that
> you cannot import
> gobject. My directory containing the gobject stuff looks
> like this:
> >
> > $ ls /usr/lib/python2.5/site-packages/gtk-2.0/gobject/
> > __init__.py   _gobject.dll*    constants.pyc 
> option.pyo
> > __init__.pyc  _gobject.dll.a*  constants.pyo 
> propertyhelper.py
> > __init__.pyo  _gobject.la*     option.py     
> propertyhelper.pyc
> > _gobject.a    constants.py     option.pyc    
> propertyhelper.pyo
> >
> > If you have these files (again, only the .dll and the
> .py files are
> important here) in the same directory, you should be able
> to do
> >
> >>>> import gobject
> >
> > at the python prompt. Does that work?
> >
> > --Michiel.
> >
> >
> >
> >
> >
> >
> > --- On Thu, 9/18/08, patty.ackermann at gmail.com
> <patty.ackermann at gmail.com>
> wrote:
> >
> >> From: patty.ackermann at gmail.com
> <patty.ackermann at gmail.com>
> >> Subject: Re: re: installing pygtk on cygwin
> >> To: "Michiel de Hoon"
> <mjldehoon at yahoo.com>, pygtk at daa.com.au,
> patty.ackermann at gmail.com
> >> Date: Thursday, September 18, 2008, 3:48 PM
> >> So I reinstalled cygwin and used a different
> mirror (cygnome
> >> ports), and
> >> all the pygtk related objects seemed be in the
> python2.5
> >> directory. I seem
> >> to have everything in the same structure as you
> mentioned
> >> except .dll.a
> >> and .a files. Is this my issue?
> >> Plus, do I also need to execute this on xterm?
> >>
> >> Thanks in advance,
> >> Patty
> >>
> >> On Sep 8, 2008 11:46pm, Michiel de Hoon
> >> <mjldehoon at yahoo.com> wrote:
> >> > You need to install pygobject. It is separate
> from
> >> pygtk.
> >> >
> >> >
> >> >
> >> > --Michiel.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --- On Mon, 9/8/08, patty.ackermann at gmail.com
> wrote:
> >> >
> >> >
> >> >
> >> > > From: patty.ackermann at gmail.com
> >> >
> >> > > Subject: re: installing pygtk on cygwin
> >> >
> >> > > To: mjldehoon at yahoo.com,
> pygtk at daa.com.au
> >> >
> >> > > Date: Monday, September 8, 2008, 10:59
> AM
> >> >
> >> > > I forgot to mention the error message I
> am
> >> receiving:
> >> >
> >> > >
> >> >
> >> > > Traceback (most recent call last):
> >> >
> >> > > File "path_test.py", line 13,
> in
> >> >
> >> > > import gtk
> >> >
> >> > > File
> >> >
> >> > >
> >>
> "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py",
> >> >
> >> > > line 33,
> >> >
> >> > > in
> >> >
> >> > > import gobject as _gobject
> >> >
> >> > > ImportError: No such file or directory
> >> >
> >> > >
> >> >
> >> > > So it seems that from looking at your
> listing, I
> >> am missing
> >> >
> >> > > a gobject
> >> >
> >> > > directory? If this might be the case,
> how can I
> >> obtain the
> >> >
> >> > > appropriate
> >> >
> >> > > files in the python2.5 directory?
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >
> >
> >
> >


      


More information about the pygtk mailing list