Hi Jeenu,

On 20/05/2010 11:30 PM, Jeenu V wrote:
> Hi,
>
> I'm trying to get PyGtk on Windows XP. For that, I installed (in that
> order), Active Python 2.6 (installed in c:\python26), GTK 2.16 run
> time bundle (downloaded from http://www.gtk.org/download-windows.html,
> extracted to c:\gtk-runtime, and added c:\gtk-runtime\bin to %PATH%),
> PyGtk 2.16 installer (downloaded from
> http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.16/). All
> installations went fine. However, I get the following error when I try
> to import pygtk. This is what I've got:
>    
While I've never used Active State's version of python, but your 
procedure sounds about right, but you have not mentioned if you 
installed pygobject and pycairo also.
http://www.pygtk.org/downloads.html

I don't know how pygtk behaves if they are not installed, so don't know 
if that's a problem.


> H:\>python
> ActivePython 2.6.5.12 (ActiveState Software Inc.) based on
> Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>    
>>>> import pygtk
>>>>          
> Traceback (most recent call last):
>   File "<stdin>", line 1, in<module>
> ImportError: No module named pygtk
>    

While I have had problems with import gtk, I can't remeber a time when I 
had problem with import pygtk, it usually just works for me.

Did you add the runtime bin to the path BEFORE running the pyGtk installer?


> I couldn't find any solution for my problem above. Am I required to
> install anything more? Please help.
>    
Other than trying to also install pygobject and pycario. I can only 
offer the following hints for things you might like to try.


1) I have had good success using the gtk runtime installer from 
http://gtk-win.sourceforge.net

2) If you get to the point where you can import pygtk fine, but have 
trouble with 'import gtk', then I suggest you look at some Microsoft C 
runtime's, I have often found one of these (not sure which one) helps me 
on WinXP

The Microsoft Visual C++ 2008 Redistributable Package (x86) installs
runtime components of Visual C++ Libraries required to run applications
developed with Visual C++ on a computer that does not have Visual C++
2008 installed.
http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

The Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) installs
runtime components of Visual C++ Libraries required to run applications
developed with Visual C++ SP1 on a computer that does not have Visual
C++ 2008 SP1 installed.
http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en

Good luck, keep us informed
- Steve






_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to