title: Unable to import matplotlib pyplot
body: <p>I am unable to import pyplot. How can the error be resolved?</p>
  <pre><code>&gt;&gt;&gt; from matplotlib import pyplot
  Jul 16 12:49:46  Python[35767] &lt;Error&gt;: Set a breakpoint at CGSLogError to catch errors as they are logged.
  Jul 16 12:49:46  Python[35767] &lt;Error&gt;: On-demand launch of the Window Server is allowed for root user only.
  Jul 16 12:49:46  Python[35767] &lt;Warning&gt;: CGSLookupServerRootPort: Failed to look up the port for &quot;com.apple.windowserver.active&quot; (268435459)
  Jul 16 12:49:46  Python[35767] &lt;Error&gt;: On-demand launch of the Window Server is allowed for root user only.
  Jul 16 12:49:46  Python[35767] &lt;Warning&gt;: CGSLookupServerRootPort: Failed to look up the port for &quot;com.apple.windowserver.active&quot; (268435459)
  Jul 16 12:49:46  Python[35767] &lt;Error&gt;: This user is not allowed access to the window system right now.
  _RegisterApplication(), unable to get application ASN from launchservicesd, and this application requires an ASN, so aborting.  error=#-1.
  Abort trap: 6
  </code></pre>