title: Psycopg2 and sqlalchemy both not working to pull data from a local PostgreSQL database
body: <p>I'm having a little trouble. I've tried using psycopg2 and sqlalchemy to get into my local PostgreSQL database and, while it's not throwing an error, it won't make the connection. Instead it's just stuck executing the code. Here's where it's going wrong.</p>
  <pre><code>conn = psycopg2.connect(database='db', user=&quot;user&quot;, password=&quot;password&quot;, host=&quot;127.0.0.1&quot;, port=&quot;55212&quot;)
  </code></pre>
  <p>And likewise when using sqlalchemy here is where it's going wrong.</p>
  <pre><code>engine = create_engine('postgresql://pw:db@localhost:55212/DB')
  </code></pre>
  <p>Please help, I can't do anything until this is resolved!</p>