Wrox Programmer Forums
|
BOOK: Beginning Python
This is the forum to discuss the Wrox book Beginning Python by Peter C. Norton, Alex Samuel, Dave Aitel, Eric Foster-Johnson, Leonard Richardson, Jason Diamond, Aleatha Parker, Michael Roberts; ISBN: 9780764596544
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Python section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 24th, 2007, 06:09 AM
Registered User
 
Join Date: May 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing GTK

Hi all,

I am having severe problems getting the GUI stuff from chapter 13 of the book to work. Has anyone been successful in installing GTK? I used an all in one Windows installer I found on the web (http://aruiz.typepad.com/siliconisla...ne_win32_.html), but it still isn't working. Here is what I get when I run findgtk.py:


Code:
pyGTK not found. You need GTK 2 to run this.
Did you "export PYTHONPATH=/usr/local/lib/python2.2/site-packages/" first?
Perhaps you have GTK2 but not pyGTK, so I will continue to try loading.
Traceback (most recent call last):
  File "findgtk.py", line 24, in try_import
    import gtk,gtk.glade
  File "c:\Python25\lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, in <mod
ule>
    import gobject as _gobject
ImportError: No module named gobject
I'm sorry, you apparently do not have GTK2 installed - I tried
to import gtk, gtk.glade, and gobject, and I failed.
pyGTK not found. You need GTK 2 to run this.
Did you "export PYTHONPATH=/usr/local/lib/python2.2/site-packages/" first?
Perhaps you have GTK2 but not pyGTK, so I will continue to try loading.
Traceback (most recent call last):
  File "findgtk.py", line 24, in try_import
    import gtk,gtk.glade
  File "c:\Python25\lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, in <mod
ule>
    import gobject as _gobject
ImportError: No module named gobject
I'm sorry, you apparently do not have GTK2 installed - I tried
to import gtk, gtk.glade, and gobject, and I failed.
Any ideas how I sort this out?

Cheers,

Martin






Similar Threads
Thread Thread Starter Forum Replies Last Post
where can I get code of"Beginning GTK+/GNOME Prog" oldfield All Other Wrox Books 1 February 9th, 2007 09:16 AM
GTK GUI issues and evaluation shyjumon.n Linux 0 October 12th, 2006 11:20 PM
how to interface MySQL db with gtk application sagarkoirala Linux 0 November 15th, 2004 01:12 PM
Where is the book"Beginning GTK+/GNOME Programming wenj Wrox Book Feedback 4 October 16th, 2003 07:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.