title: Error loading python27.dll error for pyinstaller
body: <p>I have successfully edited my spec file and added the folder with my data to it. It builds fine but it still can't access the data. WHen i try to run the compiled .exe i get this error: <code>Error loading Python DLL: C:\Users\Sal\AppData\Local\Temp\_MEI60122\python27.dll (error code 126)</code></p>
  
  <p><strong>EDIT 1 -</strong> I still don't have this figured out my spec file looks like this:</p>
  
  <pre><code>a = Analysis(['Clock_In.py'],
               pathex=['C:\\Users\\Sal\\Desktop'],
               hiddenimports=[],
               hookspath=None,
               runtime_hooks=None)
  a.datas += [('CO_time.pkl','CO_time.pkl', 'DATA')]
  a.datas += [('hours.pkl','hours.pkl', 'DATA')]
  a.datas += [('Obj_file.pkl','Obj_file.pkl', 'DATA')]
  a.datas += [('weekly_hours_dict.pkl','weekly_hours_dict.pkl', 'DATA')]
  
  
  
  pyz = PYZ(a.pure)
  exe = EXE(pyz,
            a.datas,
            a.binaries,       
            a.scripts,
            exclude_binaries=True,
            name='Clock_In.exe',
            debug=False,
            strip=None,
            upx=True,
            console=True, 
            icon="C:\Users\Sal\Desktop\Raindropmemory-Legendora-BrokenSword.ico")
  coll = COLLECT(exe,
                 a.binaries,
                 a.zipfiles,
                 a.datas,
                 strip=None,
                 upx=True,
                 **name='Clock_In')
  </code></pre>
  
  <p><strong>EDIT 2</strong> </p>
  
  <p>I am using 32-Bit python on a 64-bit OS(windows 8) and it has been brought to my attention that this could potentially be causing my issue, but still no solution.</p>
  
  <p><strong>EDIT 3</strong></p>
  
  <p>So i have just tried download 64-bit python and putting it in my system path. ran pyinstaller with my .spec file and still got the exact same error code! What is going on here! A curious detail though is that the <code>icon="C:\Users\Sal\Desktop\Raindropmemory-Legendora-BrokenSword.ico")</code> statement from spec file executed and updated the icon successfully, where as before it would not. </p>
  
  <p><strong>EDIT 4</strong></p>
  
  <p>This is the statement i have in my code for MEIPASS straight from the documentation.</p>
  
  <pre><code>if getattr(sys, 'frozen', False):
  # we are running in a |PyInstaller| bundle
  basedir = sys._MEIPASS
  else:
  # we are running in a normal Python environment
  basedir = os.path.dirname(__file__)
  </code></pre>