title: neo4j - python driver, Service unavailable
body: <p>I am very new to neo4j and I am trying to stablish a connection from python3.6 to neo4j. I have installed the driver and I am just getting started with the first steps:</p>
  <blockquote>
  <p>import requests
  import os
  import time
  import urllib
  from neo4j.v1 import GraphDatabase, basic_auth</p>
  <p>GraphDatabase.driver(&quot;bolt://localhost:7687&quot;, auth=basic_auth(&quot;neo4j&quot;, &quot;myPass&quot;))</p>
  </blockquote>
  <p>However, already in this step I am getting an error:</p>
  <pre><code>driver = GraphDatabase.driver(&quot;bolt://localhost:7687&quot;, auth=basic_auth(&quot;neo4j&quot;, &quot;myPass&quot;))
  Traceback (most recent call last):
  
    File &quot;&lt;ipython-input-5-9ba197b31f8c&gt;&quot;, line 1, in &lt;module&gt;
      driver = GraphDatabase.driver(&quot;bolt://localhost:7687&quot;, auth=basic_auth(&quot;neo4j&quot;, &quot;myPass&quot;))
  
    File &quot;/Users/backup/anaconda/lib/python3.6/site-packages/neo4j/v1/api.py&quot;, line 112, in driver
      return driver_class(uri, **config)
  
    File &quot;/Users/backup/anaconda/lib/python3.6/site-packages/neo4j/v1/direct.py&quot;, line 56, in __init__
      pool.acquire()
  
    File &quot;/Users/backup/anaconda/lib/python3.6/site-packages/neo4j/v1/direct.py&quot;, line 37, in acquire
      return self.acquire_direct(resolved_addresses[0])
  
    File &quot;/Users/backup/anaconda/lib/python3.6/site-packages/neo4j/bolt/connection.py&quot;, line 386, in acquire_direct
      connection = self.connector(address)
  
    File &quot;/Users/backup/anaconda/lib/python3.6/site-packages/neo4j/v1/direct.py&quot;, line 55, in &lt;lambda&gt;
      pool = DirectConnectionPool(lambda a: connect(a, security_plan.ssl_context, **config), self.address)
  
    File &quot;/Users/backup/anaconda/lib/python3.6/site-packages/neo4j/bolt/connection.py&quot;, line 457, in connect
      raise ServiceUnavailable(&quot;Failed to establish connection to {!r}&quot;.format(address))
  
  ServiceUnavailable: Failed to establish connection to ('::1', 7687, 0, 0)
  </code></pre>
  <p>Before doing this, I have started neo4j from the Terminal, and the bolt was successfully enabled on localhost:7687.</p>
  <p>Any ideas why I might be getting this error?</p>
  <p>Thanks a lot in advance</p>