Error while connect with py2neo

On my remote server I have installed neo4j 3.5.22.
I have modified the neo4j.conf to reach neo4j browser from remotly at the addres <ip_address>:7474. So far everything is fine

My problem start when I try to configure the python script inside my web app to use neo4j, but when I execute someone of this scripts I get this error

    Traceback (most recent call last):
  File "/var/www/html/sna/server/dataSearcher/", line 14, in <module>
    graph = Graph(host='http://<ip_address>:7474/db/data', auth=('neo4j', '<password>)'))
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/database/", line 377, in __new__
    gs = GraphService(profile, **settings)
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/database/", line 199, in __new__
    inst._connector =, **connector_settings)
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/client/", line 802, in open
    return cls(profile, user_agent, init_size, max_size, max_age)
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/client/", line 808, in __init__
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/client/", line 368, in open
    seeds = [pool.acquire() for _ in range(init_size or cls.default_init_size)]
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/client/", line 524, in acquire
    on_release=lambda c: self.release(c))
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/client/", line 99, in open
    on_bind=on_bind, on_unbind=on_unbind, on_release=on_release)
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/client/", line 111, in open
    wire = cls._connect(profile)
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/client/", line 125, in _connect
    wire =, keep_alive=True)
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/site-packages/py2neo/", line 153, in open
  File "/home/leonardo/miniconda2/envs/sna/lib/python2.7/", line 228, in meth
    return getattr(self._sock,name)(*args)
TypeError: an integer is required

I tried to substitute:
Graph(host='http://<ip_address>:7474/db/data', auth=('neo4j', '<password>)'))
Graph(host='bolt://<ip_address>:7687/db/data', auth=('neo4j', '<password>)'))

But nothing is change for me.
What's wrong ? thanks

In both cases whether using HTTP or Bolt, no "path" is required in the connection URL:

I think this is a part of your problem, and you should clean up the URL.

Additionally -- /db/data is a partial path on an HTTP server, and so using that in combination with port 7687 and bolt is not meaningful, since bolt servers do not expose paths.

So, in your opinion should I just put
graph = Graph(host='<ip_address>:7687', auth=('neo4j', '<password>'))
in my code ?