title: AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
body: <p>I am getting an SSL error using twilio.  Anybody have any suggestions?</p>
  
  <h3>Error:</h3>
  
  <blockquote>
  <pre><code>Traceback (most recent call last):
    File "communication_easy/that_guy/communicate.py", line 4, in &lt;module&gt;
      from twilio.rest import Client
    File "/usr/local/lib/python2.7/dist-packages/twilio/rest/__init__.py", line 14, in &lt;module&gt;
      from twilio.http.http_client import TwilioHttpClient
    File "/usr/local/lib/python2.7/dist-packages/twilio/http/http_client.py", line 1, in &lt;module&gt;
      from requests import Request, Session, hooks
    File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py", line 84, in &lt;module&gt;
      from urllib3.contrib import pyopenssl
    File "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in &lt;module&gt;
      import OpenSSL.SSL
    File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in &lt;module&gt;
      from OpenSSL import rand, crypto, SSL
    File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in &lt;module&gt;
      SSL_ST_INIT = _lib.SSL_ST_INIT
  AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
  </code></pre>
  </blockquote>
  
  <h3>Code:</h3>
  
  <pre><code>import random
  from twilio.rest import Client
  
  TWILIO_ACCOUNT_SID = "asdfasdfsdfsdf"
  TWILIO_AUTH_TOKEN  = "asdfasdfasdfasf"
  TWILIO_NUMBER = "+5555555"
  
  
  def send_text(body, target_phone_number):
      client = Client(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN)
      message = client.messages.create(body=body, from_=TWILIO_NUMBER, to=target_phone_number)
  
  send_text(blah, blah)
  </code></pre>