Hot answers tagged pygtk
Use the GObject introspection based Python3 bindings for Gtk and friends: from gi.repository import Gtk, GObject That needs the package python3-gi which is installed by default. Some names have changed since PyGTK. The Python GObject Introspection API Reference should help you to find the new names (and other changes).
try: from gi.repository import Gtk and replace gtk by Gtk in your code or from gi.repository import Gtk as gtk see also : Python GTK+ 3 Tutorial : Getting Started
python packages installed system-wide may not be available for python versions installed in anaconda directories. Try instead to load your script using the full path to the system interpreter: $ /usr/bin/python3 Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. ...
The last section of your log is the one that will help you to find the packages to install as debian packages are not (always) exactly named as stated in the error logs. So you have to install: I: No native package found for espeak (/usr/include/espeak/speak_lib.h) I: No native package found for mpfr (/usr/include/mpfr.h) I: No native package found for ...
Another way that I use personally is apt-file sudo apt-get install apt-file apt-file update Now you can search the packages for the missing files, eg: % apt-file search /usr/include/sasl/sasl.h libsasl2-dev: /usr/include/sasl/sasl.h therefore: sudo apt-get install libsasl2-dev Or another example % apt-file search /usr/bin/cups-config libcups2-dev: ...
Only top voted, non community-wiki answers of a minimum length are eligible