title: py2exe error on MSVCR80.dll
body: <pre><code>from distutils.core import setup
  import py2exe,sys,os
  
  sys.argv.append('py2exe')
  
  try:
          setup(
     options = {'py2exe': {'bundle_files': 1}}, 
     console=['my_console_script.py'], 
     zipfile = None,
     )
  except Exception, e:
   print e
  </code></pre>
  
  <p><strong>outputs:</strong></p>
  
  <pre><code>&gt; running py2exe
  &gt; *** searching for required modules ***
  &gt; *** parsing results ***
  &gt; *** finding dlls needed *** Traceback (most recent call last):   File
  &gt; "C:\scripts\download_ghost_recon\setup.py",
  &gt; line 26, in &lt;module&gt;
  &gt;     zipfile = None,   File "C:\Python26\lib\distutils\core.py",
  &gt; line 162, in setup
  &gt;     raise SystemExit, error SystemExit: error: MSVCR80.dll: No
  &gt; such file or directory
  </code></pre>
  
  <p><strong>I'm on python 2.6 in Windows 7</strong></p>
  
  <p>So how can I make this MSVCR80.dll error go away, and compile my script?</p>
  
  <p>On other scripts, I can run the same setup.py and not receive this error. </p>
  
  <p>This makes me think that in this script, py2exe needs this MSVCR80.dll</p>
  
  <p>I also tried this code, which I found here:
  <a href="http://www.py2exe.org/index.cgi/OverridingCriteraForIncludingDlls" rel="nofollow noreferrer">http://www.py2exe.org/index.cgi/OverridingCriteraForIncludingDlls</a>
  but it also didn't work.</p>
  
  <pre><code>from distutils.core import setup
  import py2exe,sys,os
  
  origIsSystemDLL = py2exe.build_exe.isSystemDLL
  def isSystemDLL(pathname):
          if os.path.basename(pathname).lower() in ("msvcp71.dll", "dwmapi.dll"):
                  return 0
          return origIsSystemDLL(pathname)
  py2exe.build_exe.isSystemDLL = isSystemDLL
  
  sys.argv.append('py2exe')
  
  try:
          setup(
              options = {'py2exe': {'bundle_files': 1}}, 
              console=['my_console_script.py'], 
              zipfile = None,
              )
  except Exception, e:
      print e
  </code></pre>
  
  <p><strong>*EDIT</strong>
  I've also run a search on my computer for this file, it is found in these locations:</p>
  
  <pre><code>C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.762_none_10b2f55f9bffb8f8
  C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_d08d7da0442a985d
  C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5
  </code></pre>