[pygtk] installing pygtk on cygwin
Michiel de Hoon
mjldehoon at yahoo.com
Sat Sep 20 22:12:53 WST 2008
> 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