|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
installing on UBUNTU Hardy HeronI'm trying to install PyGtk on UBUNTU Hardy Heron for development, can't
make it work. I'm trying to run the demo called base.py: #!/usr/bin/env python # example base.py import sys sys.path.append("/usr/share/python-support/python-gobject") import pygtk pygtk.require('2.0') import gtk class Base: def __init__(self): self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.show() def main(self): gtk.main() print __name__ if __name__ == "__main__": base = Base() base.main() Initially, Python couldn't import pygtk. I found it, then just patched in the sys.path.append for the time being to see what else needed work. Now, python stops at import gtk, which I discovered isn't installed anywhere. What are the steps I need to follow to correctly install PyGtk on UBUNTU? _______________________________________________ pygtk mailing list pygtk@... http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
|
Re: installing on UBUNTU Hardy HeronYou shouldn't have to install this manually at all,
sudo apt-get install python-gtk2 python-gnome2 python-glade2 is all you normally need. And you definitely should not manipulate sys.path for this. You may also try sudo apt-get --reinstall install python2.5 python-gtk2 python-gnome2 python-glade2 to fix a previously existing installation. -Samuel On Sat, 2008-07-12 at 12:01 -0700, randy wrote: > I'm trying to install PyGtk on UBUNTU Hardy Heron for development, can't > make it work. > > I'm trying to run the demo called base.py: > > #!/usr/bin/env python > # example base.py > > import sys > sys.path.append("/usr/share/python-support/python-gobject") > > > > import pygtk > pygtk.require('2.0') > import gtk > > class Base: > def __init__(self): > self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) > self.window.show() > > def main(self): > gtk.main() > > print __name__ > if __name__ == "__main__": > base = Base() > base.main() > > > Initially, Python couldn't import pygtk. I found it, then just patched > in the sys.path.append for the time being to see what else needed work. > Now, python stops at import gtk, which I discovered isn't installed > anywhere. > > What are the steps I need to follow to correctly install PyGtk on > UBUNTU? > > > > > > > _______________________________________________ > pygtk mailing list pygtk@... > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ _______________________________________________ pygtk mailing list pygtk@... http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
|
Re: installing on UBUNTU Hardy Heronrandy wrote:
> I'm trying to install PyGtk on UBUNTU Hardy Heron for development, can't > make it work. > > I'm trying to run the demo called base.py: > > #!/usr/bin/env python > # example base.py > > import sys > sys.path.append("/usr/share/python-support/python-gobject") > > > > import pygtk > pygtk.require('2.0') > import gtk > > class Base: > def __init__(self): > self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) > self.window.show() > > def main(self): > gtk.main() > > print __name__ > if __name__ == "__main__": > base = Base() > base.main() > > > Initially, Python couldn't import pygtk. I found it, then just patched > in the sys.path.append for the time being to see what else needed work. > Now, python stops at import gtk, which I discovered isn't installed > anywhere. > > What are the steps I need to follow to correctly install PyGtk on > UBUNTU? > I am using 8.04 Hardy Heron, worked out of the box for me. _______________________________________________ pygtk mailing list pygtk@... http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
|
Re: installing on UBUNTU Hardy Heronrandy wrote:
> I'm trying to install PyGtk on UBUNTU Hardy Heron for development, can't > make it work. > > I'm trying to run the demo called base.py: > > #!/usr/bin/env python > # example base.py > > import sys > sys.path.append("/usr/share/python-support/python-gobject") > > > > import pygtk > pygtk.require('2.0') > import gtk > > class Base: > def __init__(self): > self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) > self.window.show() > > def main(self): > gtk.main() > > print __name__ > if __name__ == "__main__": > base = Base() > base.main() > > > Initially, Python couldn't import pygtk. I found it, then just patched > in the sys.path.append for the time being to see what else needed work. > Now, python stops at import gtk, which I discovered isn't installed > anywhere. > > What are the steps I need to follow to correctly install PyGtk on > UBUNTU? > I am using 8.04 Hardy Heron, worked out of the box for me. _______________________________________________ pygtk mailing list pygtk@... http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
| Free Forum Powered by Nabble | Forum Help |