title: DLL load failed: %1 is not a valid Win32 application - Appcelerator
body: <p>When I try to run an app in Appcelerator (3.1.x) on the built-in Android emulator I'm getting a Python error like this:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Donny\AppData\Roaming\Titanium\mobilesdk\win32\3.1.3.GA\android\fastdev.py&quot;, line 10, in &lt;module&gt;
      import urllib, threading
    File &quot;C:\csvn\Python25\lib\urllib.py&quot;, line 26, in &lt;module&gt;
      import socket
    File &quot;C:\csvn\Python25\lib\socket.py&quot;, line 47, in &lt;module&gt;
      import _socket
  ImportError: DLL load failed: %1 is not a valid Win32 application.
  </code></pre>
  <p>I'm not proficient in Python, but what I understand from <a href="https://stackoverflow.com/questions/4676433/solving-dll-load-failed-1-is-not-a-valid-win32-application-for-pygame">this question</a>, <a href="https://stackoverflow.com/questions/3782117/py2exe-dll-load-failed">this question</a> and <a href="https://stackoverflow.com/questions/9277875/dll-load-failed-1-is-not-valid-win32-application">this one</a>, is that I have a 32 bit version of Python trying to call a 64 bit DLL, right? I'm running on a 64 bit version of Windows 7, so this would make sense. If this is the case, how do I go about fixing this? Would I have to modify something in Appcelerator to use the 64 bit version of Python or possibly direct it to a 32 bit DLL instead?</p>