title: Unable to import sendgrid into GAE application
body: <p>I have a GAE application that I want to integrate with Sendgrid. I've followed the instructions (<a href="https://cloud.google.com/appengine/docs/python/mail/sendgrid" rel="noreferrer">https://cloud.google.com/appengine/docs/python/mail/sendgrid</a>) on how to install Sendgrid and everything works fine in my local dev environment.</p>
  
  <p>However, when I push my application to GAE and run it, I immediately receive the following 500 Server Error:</p>
  
  <blockquote>
    <p>Error: Server Error</p>
    
    <p>The server encountered an error and could not complete your request.
    Please try again in 30 seconds.</p>
  </blockquote>
  
  <p>Even with debug on, that's all I get. But digging into the logs at GAE I can see the source of the problem:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
    line 240, in Handle
        handler = _config_handle.add_wsgi_middleware(self._LoadHandler())   File
    "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
    line 299, in _LoadHandler
        handler, path, err = LoadObject(self._handler)   File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
    line 85, in LoadObject
        obj = ____import____(path[0])   File "/base/data/home/apps/....wsgi_app.py",
    line 16, in 
        import sendgrid   File "/base/data/home/apps/..../sendgrid/____init____.py",
    line 7, in 
        from .client import SendGridAPIClient   File "/base/data/home/apps/..../sendgrid/client.py",
    line 1, in 
        import python_http_client ImportError: No module named python_http_client</p>
  </blockquote>
  
  <p>So I went into sendgrid/client.py and commented out the following line of code...</p>
  
  <pre><code>import python_http_client
  </code></pre>
  
  <p>Once I do that, I can run my app without receiving the 500 Server Error but the test email I tried to send wasn't delivered (although I didn't receive any error messages when trying to initiate it).</p>
  
  <p>It doesn't seem right that I need to comment out a line of the Sendgrid code to make the import work and I can't figure out why others that are running Sendgrid with Python and GAE aren't having the same problem. Any thoughts would be appreciated. Thanks. </p>