Received: by 10.224.201.7 with SMTP id ey7mr5588299qab.0.1335628309293; Sat, 28 Apr 2012 08:51:49 -0700 (PDT) X-BeenThere: neo4j@googlegroups.com Received: by 10.229.205.91 with SMTP id fp27ls975084qcb.2.gmail; Sat, 28 Apr 2012 08:51:46 -0700 (PDT) Received: by 10.224.189.68 with SMTP id dd4mr5579855qab.2.1335628306876; Sat, 28 Apr 2012 08:51:46 -0700 (PDT) Received: by 10.224.21.143 with SMTP id j15msqab; Sat, 28 Apr 2012 08:51:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.27.48 with SMTP id q16mr320900vdg.8.1335628267351; Sat, 28 Apr 2012 08:51:07 -0700 (PDT) Authentication-Results: ls.google.com; spf=pass (google.com: domain of alessio.battistu...@securtel.net designates internal as permitted sender) smtp.mail=alessio.battistu...@securtel.net; dkim=pass header...@securtel.net Received: by c28g2000vbu.googlegroups.com with HTTP; Sat, 28 Apr 2012 08:51:07 -0700 (PDT) Date: Sat, 28 Apr 2012 08:51:07 -0700 (PDT) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.30 Safari/536.5,gzip(gfe) Message-ID: <260f3b35-d451-456d-bdba-7b89b4a71f40@c28g2000vbu.googlegroups.com> Subject: py2neo problem From: Alessio Battistutta To: Neo4j Content-Type: text/plain; charset=ISO-8859-1 Hi guys, i try a simple query with py2neo an Cypher, (just install this lib .. ) that's all : graph_db = neo4j.GraphDatabaseService(adprotocol+"://"+adserver +":"+adport+addata) # Build a Cypher query query = "START me=node("+callingUser+") MATCH me-[:friendOf]->b RETURN b.id,b.name" # Define a row handler... def print_row(row): b = row print(str(b["id_node"])+" "+b["name"]) # ...and execute the query cypher.execute(query, graph_db, row_handler=print_row) but server return me and error : cypher.execute(query, graph_db, row_handler=print_row)\n', ' File "/ usr/local/lib/python2.7/dist-packages/py2neo-1.2.0-py2.7.egg/py2neo/ cypher.py", line 198, in execute\n row_handler=row_handler, metadata_handler=metadata_handler\n', ' File "/usr/local/lib/ python2.7/dist-packages/py2neo-1.2.0-py2.7.egg/py2neo/cypher.py", line 50, in execute\n e = Query._Execution(self.query, self.graph_db, row_handler, metadata_handler)\n', ' File "/usr/local/lib/python2.7/ dist-packages/py2neo-1.2.0-py2.7.egg/py2neo/cypher.py", line 90, in __init__\n streaming_callback=self.handle_chunk\n', ' File "/usr/ local/lib/python2.7/dist-packages/py2neo-1.2.0-py2.7.egg/py2neo/ rest.py", line 167, in _post\n return self._request(\'POST\', uri, json.dumps(data), **kwargs)\n', ' File "/usr/local/lib/python2.7/dist- packages/py2neo-1.2.0-py2.7.egg/py2neo/rest.py", line 122, in _request \n raise IOError("Cannot send {0} request".format(method))\n', 'IOError: Cannot send POST request\n'] Thank you for response Nigel :D ps. i install the py2neo with easy_install, maybe the examples on web site are older than code release/version, i think something like streaming callback parameter.. :)