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 <[EMAIL PROTECTED]>
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, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
>> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> Subject: Re: re: installing pygtk on cygwin
>> To: "Michiel de Hoon" <[EMAIL PROTECTED]>, [email protected],
[EMAIL PROTECTED]
>> 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
>> <[EMAIL PROTECTED]> wrote:
>> > You need to install pygobject. It is separate from
>> pygtk.
>> >
>> >
>> >
>> > --Michiel.
>> >
>> >
>> >
>> >
>> >
>> > --- On Mon, 9/8/08, [EMAIL PROTECTED] wrote:
>> >
>> >
>> >
>> > > From: [EMAIL PROTECTED]
>> >
>> > > Subject: re: installing pygtk on cygwin
>> >
>> > > To: [EMAIL PROTECTED], [email protected]
>> >
>> > > 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?
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>
>
>
>
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/