Skip to content Skip to sidebar Skip to footer

Cannot Run Python On Windows. What Am I Missing?

I am pretty new to python. Please correct me if I show stupidity. So I am trying to run the following code: from gi.repository import Gtk class LisaMainWindow: def on_LisaMa

Solution 1:

I just had the same kind of problem.

To solve it, I have installed GTK3+ from http://www.gtk.org/download/win32.php the all-in-one bundle of the GTK+ stack including 3rd-party dependencies at http://win32builder.gnome.org/gtk+-bundle_3.6.4-20130921_win32.zip after unzip the file in somedir.

You can test it by running somedir\bin\gtk3-demo.exe you have to add the bin dir which contains dll files in the windows PATH run in console > where libgdk-3-0.dll to check dll are found then run your python file.


Solution 2:

Just had the same issue (Although with a different version), Previous release doesn't have this problem.

Works: pygi-aio-3.14.0_rev15-setup.exe

Doesn't Work: pygi-aio-3.14.0_rev16-setup.exe

http://softlayer-dal.dl.sourceforge.net/project/pygobjectwin32/pygi-aio-3.14.0_rev15-setup.exe


Post a Comment for "Cannot Run Python On Windows. What Am I Missing?"