title: AttributeError: 'Graph' object has no attribute 'cypher' in migration of data from Postgress to Neo4j(Graph Database)
body: <p>I am working on migration of data from postgres to Graph Database manually.</p>
  
  <p>I have wrote script below:</p>
  
  <pre><code>import psycopg2
  from py2neo import authenticate, Graph
  
  authenticate("localhost:7474", "neo4j", "password")
  n4j_graph = Graph("http://localhost:7474/db/data/")
  
  
  try:
      conn=psycopg2.connect("dbname='db_name' user='user' password='password'")
  except:
      print "good bye"
  
  cur = conn.cursor()
  try:
      cur.execute("""SELECT * from table_name""")
  except:
      print "not found"
  rows = cur.fetchall()
  
  
  for row in rows:
      username = row[4]
      email = row[7]
      s = '''MERGE (u:User { username: "%(username)s"}) MERGE (e:Email { email: "%(email)s"}) CREATE UNIQUE (u)-[:BELONGS_TO]-&gt;(e)''' %{"username": username, "email": email}
      print s
      n4j_graph.cypher.execute(s)
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>AttributeError: 'Graph' object has no attribute 'cypher'</p>
  </blockquote>
  
  <p>This issue I resolved by updating py2neo to version 2.0.8.</p>
  
  <pre><code>pip uninstall py2neo
  pip install py2neo==2.0.8
  </code></pre>
  
  <p>I am following documentation of <a href="http://py2neo.org/2.0/cypher.html" rel="noreferrer">py2neo</a>.</p>
  
  <p>While for production I am still getting:</p>
  
  <blockquote>
    <p>AttributeError: 'Graph' object has no attribute 'cypher'</p>
    
    <p>GET 404 response</p>
  </blockquote>
  
  <p>What can be issue?</p>