title: Error running systrace tool in ADB using a Jelly Bean 4.1 emulator on Windows 7
body: <p>How can I run <code>systrace</code> to show its html output? After watching the Google I/O 2012 talk <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=Q8m9sHdyXnE#t=31m15s" rel="nofollow">"For Butter or Worse"</a> I am having trouble getting <code>systrace</code> to work on Windows 7 using the emulator running Jelly Bean 4.1.</p>
  
  <p>I did the following:</p>
  
  <ol>
  <li>Installed Python 2.7, and added the install folder to my PATH</li>
  <li>Ran the following: <code>C:\android-sdk\platform-tools\systrace&gt;python systrace.py</code> (with older SDKs: <code>C:\android-sdk\tools\systrace&gt;python systrace.py</code>)</li>
  </ol>
  
  <p>But I get the following error in cmd:</p>
  
  <pre><code>Traceback (most recent call last):
    File "systrace.py", line 212, in &lt;module&gt;
      main()
    File "systrace.py", line 124, in main
      ready = select.select([adb.stdout, adb.stderr], [], [adb.stdout, adb.stderr])
  select.error: (10093, 'Either the application has not called WSAStartup, or WSAStartup failed')
  </code></pre>
  
  <p>Note: </p>
  
  <ul>
  <li>I have enabled traces in the emulator: <code>Settings &gt; Developer Options &gt; Enable traces</code></li>
  <li>I have also tried with Python 3.2</li>
  </ul>