471,330 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Problem Compilation Modules Missing With Py2exe

i work with python25,mysqldb25,pygtk25 ,with vista os
when i compile my setup.py with py2exe appears modules gdk,ltihooks,gobject.timeout_add] missing and my executable did not work please help me give me the gobject and gdk module if you work with debian you can have them
address:[REMOVED per site rules]
Oct 14 '07 #1
1 5077
bartonc
6,596 Expert 4TB
i work with python25,mysqldb25,pygtk25 ,with vista os
when i compile my setup.py with py2exe appears modules gdk,ltihooks,gobject.timeout_add] missing and my executable did not work please help me give me the gobject and gdk module if you work with debian you can have them
address:[REMOVED per site rules]
I can't help directly because I'm on Windows. But I do know that you'll need to play with you includes and may as well tinker with the excludes options to setup(). Much as I have done here:
Expand|Select|Wrap|Line Numbers
  1. includes = ["PMDDialog", "PMD"]
  2. excludes = ["pywin", "pywin.debugger", "pywin.debugger.dbgcon",
  3.             "pywin.dialogs", "pywin.dialogs.list",
  4.             "Tkconstants","Tkinter","tcl",
  5.             ]
  6.  
  7. setup(
  8.     options = {"py2exe": {"compressed": 1,
  9.                           "optimize": 2,
  10.                           "ascii": 1,
  11.                           "bundle_files": 1,
  12.                           "packages": packages,
  13. ##                          "includes": includes,
  14.                           "excludes": excludes}},
in this thread.

Hope that helps.
Oct 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by RJS | last post: by
reply views Thread by bapeterson | last post: by
4 posts views Thread by Sarah Mount | last post: by
reply views Thread by Andrea | last post: by
5 posts views Thread by Lad | last post: by
reply views Thread by Lad | last post: by
4 posts views Thread by bwaha | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.