<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi, I have tried to compiled a python file with pygame module into a exe file. I have written game2exe.py and I read some articles online which told me to include the &quot;msvcp71.dll&quot;, &quot;dwmapi.dll&quot; files to my python:</div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<div>def isSystemDLL(pathname):</div><div>        if os.path.basename(pathname).lower() in (&quot;msvcp71.dll&quot;, &quot;dwmapi.dll&quot;):</div><div>                return 0</div><div>                return origIsSystemDLL(pathname)</div>

</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

Then, I got the error messages like </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">The following modules appear to be missing:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

AppKit, Foundation, ICCProfile, Numeric, OpenGL.GL, __imaging_gif, scproxy, copyreg, dummy.process, numpy, pkg_resorces, quitueue, winreg, pygame-sdlmain_osx</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I tried to include:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<div>self.extra_datas = [&quot;kaiu.ttf&quot;,</div><div>                            &quot;ARIALUNI.TTF&quot;,</div><div>                            &#39;images/cards&#39;,</div><div>                            &#39;images&#39;,</div>

<div>                            &#39;sounds&#39;,</div><div>                            &#39;pygame&#39;</div><div>                            &#39;Manifests&#39;</div><div>                            ]</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">These files contains both modules and resource of my program, but in the end, when I click on the blackjack.exe, it replies me a blank screen with nothing going on. </div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">In the Manifests folder, I have include:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

Microsoft.VC90.CRT.manifest</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">msvcm90.dll</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

msvcp90.dll</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">msvcr90.dll</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

I also tried to compiled setup.py with py2exe:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>from distutils.core import setup</div><div><br></div>

<div>import py2exe,sys,os</div><div>import pygame</div><div><br></div><div>setup(console=[&#39;blackjack.py&#39;])</div><div><br></div><div><br></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;):</div><div>                return 0</div><div>        return origIsSystemDLL(pathname)</div>

<div>py2exe.build_exe.isSystemDLL = isSystemDLL</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">It works fine until the end, but when I click the blackjack.exe, it returns to me:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

file &quot;pygame\___init__pyc&quot;, line 263 in moduleattributeError:imageext</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

Thanks.</div>