I had issues as well.  I found that this setup.py works for me.  I also had to import the PyGUI modules specially in my main script as follows:<div><br></div><div><div>from GUI.Buttons import Button</div><div>from GUI.RadioGroups import RadioGroup</div>

<div>from GUI.RadioButtons import RadioButton</div><div>from GUI.Labels import Label</div><div>from GUI.CheckBoxes import CheckBox</div><div>from GUI.Frames import Frame</div><div>from GUI.Applications import Application</div>

<div>from GUI.Menus import Menu</div><div>from GUI.MenuLists import MenuList</div><div>from GUI.Windows import Window</div><div>from GUI.Sliders import Slider</div><div>from GUI.Colors import rgb</div><div>from GUI.Resources import resource_path, find_resource</div>

<div>from GUI.FileDialogs import request_old_file</div><div>from GUI.Files import FileRef, FileType, DirRef</div></div><div><br></div><div>Here are the contents of my setup.py file:</div><div><br></div><div><div># Build an executable for my_script.</div>

<div>#</div><div>import sys</div><div>import os</div><div><br></div><div># Yet another *hack* to get py2exe to work.  It can&#39;t seem to find</div><div># win32com.shell.</div><div><br></div><div># ModuleFinder can&#39;t handle runtime changes to __path__, but win32com uses them</div>

<div>try:</div><div>    # py2exe 0.6.4 introduced a replacement modulefinder.</div><div>    # This means we have to add package paths there, not to the built-in</div><div>    # one.  If this new modulefinder gets integrated into Python, then</div>

<div>    # we might be able to revert this some day.</div><div>    # if this doesn&#39;t work, try import modulefinder</div><div>    try:</div><div>        import py2exe.mf as modulefinder</div><div>    except ImportError:</div>

<div>        import modulefinder</div><div>    import win32com</div><div>    for p in win32com.__path__[1:]:</div><div>        modulefinder.AddPackagePath(&quot;win32com&quot;, p)</div><div>    for extra in [&quot;win32com.shell&quot;]: #,&quot;win32com.mapi&quot;</div>

<div>        __import__(extra)</div><div>        m = sys.modules[extra]</div><div>        for p in m.__path__[1:]:</div><div>            modulefinder.AddPackagePath(extra, p)</div><div>except ImportError:</div><div>    # no build path setup, no worries.</div>

<div>    pass</div><div><br></div><div>from distutils.core import setup</div><div>import py2exe</div><div><br></div><div>origIsSystemDLL = py2exe.build_exe.isSystemDLL</div><div>def isSystemDLL(pathname):</div><div>        if os.path.basename(pathname).lower() in (&quot;msvcp71.dll&quot;, &quot;dwmapi.dll&quot;, &quot;mfc71.dll&quot;):</div>

<div>                return 0</div><div>        return origIsSystemDLL(pathname)</div><div>py2exe.build_exe.isSystemDLL = isSystemDLL</div><div><br></div><div>################################################################</div>

<div><br></div><div># If run without args, build executables, in quiet mode.</div><div>if len(sys.argv) == 1:</div><div>    sys.argv.append(&quot;py2exe&quot;)</div><div>    sys.argv.append(&quot;-q&quot;)</div><div><br>
</div>
<div>class Target:</div><div>    def __init__(self, **kw):</div><div>        self.__dict__.update(kw)</div><div>        # for the versioninfo resources</div><div>        self.version = &quot;1.0.0&quot;</div><div>        self.company_name = &quot;My Company&quot;</div>

<div>        self.copyright = &quot;Copyright 2011 Me. All rights reserved.&quot;</div><div>        <a href="http://self.name">self.name</a> = &quot;My Script&quot;</div><div><br></div><div><br></div><div>my_script = Target(</div>

<div>    # used for the versioninfo resource</div><div>    description = &quot;A cool description&quot;,</div><div><br></div><div>    # what to build</div><div>    script = &quot;my_script.py&quot;,</div><div>    dest_base = &quot;my_script&quot;)</div>

<div><br></div><div><br></div><div>setup(</div><div>        options = {&quot;py2exe&quot;: {&quot;compressed&quot;: 1,</div><div>                   &quot;optimize&quot;: 2,</div><div>                   &quot;ascii&quot;: 1,</div>

<div>                   &quot;bundle_files&quot;: 3,</div><div>                   &quot;packages&quot; : [&#39;GUI&#39;, &#39;encodings&#39;],</div><div>                   }},</div><div>        zipfile = None,</div><div>
        windows = [my_script]</div>
<div>    )</div></div><div><br></div><div><br></div><div>I hope this helps.</div><div><br>Regards,</div><div>Mark.</div><div><br><div class="gmail_quote">On Thu, Apr 14, 2011 at 6:46 PM, Devon Meunier <span dir="ltr">&lt;<a href="mailto:devon.meunier@gmail.com">devon.meunier@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have similar issues with py2exe.<br>
<div><div></div><div class="h5"><br>
On Thu, Apr 14, 2011 at 5:59 PM, Vernon Cole &lt;<a href="mailto:vernondcole@gmail.com">vernondcole@gmail.com</a>&gt; wrote:<br>
&gt; Try <a href="http://www.py2exe.org/" target="_blank">http://www.py2exe.org/</a><br>
&gt; If that does not work, get back to us on this list.<br>
&gt; Vernon Cole<br>
&gt;<br>
&gt; On Thu, Apr 14, 2011 at 1:59 PM, Devon Meunier &lt;<a href="mailto:devon.meunier@gmail.com">devon.meunier@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello all,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve written a simple application in PyGUI, and I&#39;m wondering how best<br>
&gt;&gt; to distribute this to Windows users who do not have Python, Pywin32,<br>
&gt;&gt; or PyGUI installed. Normally, I would use cx_freeze to produce an<br>
&gt;&gt; .exe, but it appears to be unable to load PyGUI. Thoughts? Options?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; Devon<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pygui mailing list<br>
&gt;&gt; <a href="mailto:Pygui@python.org">Pygui@python.org</a><br>
&gt;&gt; <a href="http://mail.python.org/mailman/listinfo/pygui" target="_blank">http://mail.python.org/mailman/listinfo/pygui</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Pygui mailing list<br>
<a href="mailto:Pygui@python.org">Pygui@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pygui" target="_blank">http://mail.python.org/mailman/listinfo/pygui</a><br>
</div></div></blockquote></div><br></div>