Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6329095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:35:15+00:00 2026-05-24T17:35:15+00:00

I’d like to learn Python since it looks nice and I want to work

  • 0

I’d like to learn Python since it looks nice and I want to work with GTK. My previous experience with programming is Java and C# hardly a pain in the backside to deal with errors. However I am having problems with pythons py2exe and understand how to debug this problem. From what I can understand it probably a setup error relating to version types and file locations and not code.

I am running

  • Windows 7 64 bit
  • Python version 2.7.2 – 32 bit
  • pygtk-all-in-one-2.24.0.win32-py2.7
  • py2exe-0.6.9.win32-py2.7

All hyperlinks can be seen at http://pastebin.com/MNGPQVMP This is due to Stackoverflow only allowing me to post 2 links, but I’ve got a lot of information!

My problem is python executes my basic code fine with no problems, however using py2exe errors occur.

To produce the error I ran

python setup.py py2exe

In the list are both python files, the exe error log and the console output

  • PyApp.py > See main link
  • setup.py > See main link
  • PyApp.exe.log > See main link
  • Console output of running py2exe > See main link

For some extra information I ran

python -m py2exe.mf -d PyApp.py 
python -m py2exe.mf -d setup.py

The output of both commands are listed below

  • python -m py2exe.mf -d PyApp.py > See main link
  • python -m py2exe.mf -d setup.py > See main link

from what I can understand from the exe error log and console output is it cannot import gio (is that part of glib?). And the extra module listings indicate other errors.

The gio error from the module lising of PyApp.py points to \Python27\lib\site-packages\gtk-2.0\glib\_init_.py This file contains

enter from glib._glib import *
_PyGLib_API = _glib._PyGLib_API
del _glib here

So it looks like something could be missing. However I’m not so sure

So how do I fix this import error?

Also as a side note, Dependency Walker is also stating missing 2 windows dlls.
http://localhostr.com/files/Gf1mXT3/Dependency_Walker..png
I have the DLLs however they are 64 bit and not 32 bit and if i place them in the directory then Dependency Walker flags the 64 bit error, but at the moment its clearly not the problem.

This comes across as a popular problem but I cant seem to work out how to fix it with the information I have got.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:35:17+00:00Added an answer on May 24, 2026 at 5:35 pm

    Very easy to fix! In your setup.py file, you should have a line something like this:

    options = {
                      'py2exe': {
                          'packages':'encodings',
                          'includes': '<module names>',
                      }
                  },
    

    In order to fix the error, simply add “gio” to the list of ‘includes’, like this:

    options = {
                      'py2exe': {
                          'packages':'encodings',
                          'includes': 'gio',
                      }
                  },
    

    I have a program built in pyGTK, so I have a number of modules I have to import. Just for reference, that code looks like THIS on mine:

    options = {
                      'py2exe': {
                          'packages':'encodings',
                          'includes': 'cairo, pango, pangocairo, atk, gobject, gio, subprocess',
                      }
                  },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I have text I am displaying in SIlverlight that is coming from a CMS
I used javascript for loading a picture on my website depending on which small
I have a JSP page retrieving data and when single or double quotes are
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.