That must be the problem. I built /usr/local/bin/python from source, and that's the python displayed with "which python". I find that /usr/local/bin/python -c "import gtk" yields an import error, whereas /usr/bin/python -c "import gtk" is fine. Clearly the problem is with my nonstandard install of python (done for good reasons), not with Ubuntu.
How would I get gedit to use /usr/bin/python rather than /usr/local/bin/python? -- Many errors in gedit after upgrading from breezy to dapper https://launchpad.net/bugs/48308 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs