tag:blogger.com,1999:blog-3575421168816814786.post1505446960985791254..comments2023-10-25T07:10:58.697-07:00Comments on Coder's Log: whats wrong with my python setup?zeenixhttp://www.blogger.com/profile/04142631863736897222noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3575421168816814786.post-10567604908485672742008-04-29T06:53:00.000-07:002008-04-29T06:53:00.000-07:00What is the contents of your sys.path before and a...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.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3575421168816814786.post-61011811072526850632008-04-28T16:44:00.000-07:002008-04-28T16:44:00.000-07:00seems like you're using a debian sid because of yo...seems like you're using a debian sid because of your python2.4 version 2.4.5.<BR/>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.<BR/>otherwise try to reinstall python-gtk2 and try to locate the _gtk.so files via 'dpkg -L python-gtk2|grep gtk\.so'<BR/><BR/>so long<BR/><BR/>:wq buzAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3575421168816814786.post-68391212105253491292008-04-28T16:32:00.000-07:002008-04-28T16:32:00.000-07:00Try launching it with 'python -v -v'. It'll print ...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.Shahmshttps://www.blogger.com/profile/00799196834273346407noreply@blogger.comtag:blogger.com,1999:blog-3575421168816814786.post-45664781339821304462008-04-28T14:53:00.000-07:002008-04-28T14:53:00.000-07:00Verify that there is no "gtk" in your PYTHONPATH, ...Verify that there is no "gtk" in your PYTHONPATH, and verify that there is no directory named "gtk" in your "."!<BR/><BR/>Have a nice day,<BR/><BR/>LaurentAnonymousnoreply@blogger.com