Google apps
Main menu

Post a Comment On: Coder's Log

"whats wrong with my python setup?"

4 Comments -

1 – 4 of 4
Anonymous Anonymous said...

Verify that there is no "gtk" in your PYTHONPATH, and verify that there is no directory named "gtk" in your "."!

Have a nice day,

Laurent

April 28, 2008 at 2:53 PM

Blogger Shahms said...

Try launching it with 'python -v -v'. It'll print debugging output for loading modules, including what it's trying to find where. It may help you track down why one fails while the other succeeds.

April 28, 2008 at 4:32 PM

Anonymous Anonymous said...

seems like you're using a debian sid because of your python2.4 version 2.4.5.
in a recent sid installation the default python version is already 2.5.2, so I'm pretty sure an 'apt-get update && apt-get dist-upgrade' will help you.
otherwise try to reinstall python-gtk2 and try to locate the _gtk.so files via 'dpkg -L python-gtk2|grep gtk\.so'

so long

:wq buz

April 28, 2008 at 4:44 PM

Anonymous Anonymous said...

What is the contents of your sys.path before and after running pygtk.require(2.0) ? In both cases there should be '/var/lib/python-support/python2.5/gtk-2.0' which is the place where the gtk module is to be found.

April 29, 2008 at 6:53 AM

Please no insults to anyone
You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot