Find answers from the community

Updated last week

Unexpected Error Creating A Neo4jPropertyGraphStore

Hi everyone,
I'm getting an unexpected error creating a Neo4jPropertyGraphStore.
Code:
global NEO4J_STORE
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
NEO4J_STORE = Neo4jPropertyGraphStore(
url=neo4j_url,
username=neo4j_user,
password=neo4j_password)
Error:
NEO4J_STORE = Neo4jPropertyGraphStore(
File "/usr/local/lib/python3.9/site-packages/llama_index/graph_stores/neo4j/neo4j_property_graph.py", line 169, in init
self.refresh_schema()
File "/usr/local/lib/python3.9/site-packages/llama_index/graph_stores/neo4j/neo4j_property_graph.py", line 270, in refresh_schema
enhanced_info = self.structured_query(enhanced_cypher)[0]["output"]
File "/usr/local/lib/python3.9/site-packages/llama_index/graph_stores/neo4j/neo4j_property_graph.py", line 588, in structured_query
full_result = [d.data() for d in result]
File "/usr/local/lib/python3.9/site-packages/llama_index/graph_stores/neo4j/neo4j_property_graph.py", line 588, in <listcomp>
full_result = [d.data() for d in result]
File "/usr/local/lib/python3.9/site-packages/neo4j/_sync/work/result.py", line 393, in iter
self._connection.fetch_message()
File "/usr/local/lib/python3.9/site-packages/neo4j/_sync/io/_common.py", line 184, in inner
func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neo4j/_sync/io/_bolt.py", line 994, in fetch_message
res = self._process_message(tag, fields)
File "/usr/local/lib/python3.9/site-packages/neo4j/_sync/io/_bolt5.py", line 496, in _process_message
response.on_failure(summary_metadata or {})
File "/usr/local/lib/python3.9/site-packages/neo4j/_sync/io/_common.py", line 254, in on_failure
raise self._hydrate_error(metadata)
neo4j.exceptions.CypherTypeError: {code: Neo.ClientError.Statement.TypeError} {message: Expected a string value for substring, but got: 2024-01-01T00:00:00Z; consider converting it to a string with toString().}
L
d
2 comments
pip install -U llama-index-graph-stores-neo4j
Nope I do not have the newest verison. I have 0.3.1. I will try it, thanks!
Add a reply
Sign up and join the conversation on Discord