# \#python-tagged

**URL:** https://community.neo4j.com/tag/python-tagged/435.md

[Latest](https://community.neo4j.com/latest.md) · [Categories](https://community.neo4j.com/categories.md) · [Tags](https://community.neo4j.com/tags.md)

---

## [ recursive queries with conditional exiting in cypher ](https://community.neo4j.com/t/recursive-queries-with-conditional-exiting-in-cypher/68755)

<div class="topic-metadata">

**Author:** [@selva.developer](https://community.neo4j.com/u/selva.developer)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 4:02pm UTC](https://community.neo4j.com/t/recursive-queries-with-conditional-exiting-in-cypher/68755 "2024-07-10T16:02:02Z")

</div>

I am using python driver for neo4j to load a trie as a graph into the database. I have to write queries to perform search for prefixes of longest match, find substrings that are full words, the usual trie methods. How to…

---

## [Trouble Connecting with python](https://community.neo4j.com/t/trouble-connecting-with-python/68379)

<div class="topic-metadata">

**Author:** [@andrea.boghi](https://community.neo4j.com/u/andrea.boghi)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 9:50am UTC](https://community.neo4j.com/t/trouble-connecting-with-python/68379 "2024-06-13T09:50:01Z")

</div>

I am testing the capabilities of neo4j and its interface with python for my project. I seem to have a problem, which I don’t know if you can help with. This is my code: from py2neo import Graph, Node, Relationship gr…

---

## [Neo4j JSON data import error](https://community.neo4j.com/t/neo4j-json-data-import-error/66805)

<div class="topic-metadata">

**Author:** [@veluguripraveen244](https://community.neo4j.com/u/veluguripraveen244)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 9:09am UTC](https://community.neo4j.com/t/neo4j-json-data-import-error/66805 "2024-03-13T09:09:42Z")

</div>

my python script is import json from neo4j import GraphDatabase uri = "bolt://localhost:7687" user = "neo4j" password = "Praveen@1432" with open(r"C:\\Users\\veluguri.kumar\\Downloads\\Interfaces.json") as f: json\_d…

---

## [Setting vector embedding to the node using the python SDK](https://community.neo4j.com/t/setting-vector-embedding-to-the-node-using-the-python-sdk/66043)

<div class="topic-metadata">

**Author:** [@ashika.umagiliya](https://community.neo4j.com/u/ashika.umagiliya)\
**Replies:** 1\
**Last updated:** [January 31, 2024, 6:49am UTC](https://community.neo4j.com/t/setting-vector-embedding-to-the-node-using-the-python-sdk/66043 "2024-01-31T06:49:14Z")

</div>

I am in the process creating vector index for an existing graph db. I created a vector index following this : Vector search indexes - Cypher Manual Next using python SDK , I traverse the nodes and get the vector-embed…

---

## [Retry mechanism in verify\_connectivity for Python](https://community.neo4j.com/t/retry-mechanism-in-verify-connectivity-for-python/64752)

<div class="topic-metadata">

**Author:** [@geetparekh](https://community.neo4j.com/u/geetparekh)\
**Replies:** 1\
**Last updated:** [October 31, 2023, 7:49am UTC](https://community.neo4j.com/t/retry-mechanism-in-verify-connectivity-for-python/64752 "2023-10-31T07:49:43Z")

</div>

I am trying to use verify\_connectivity function (API Documentation — Neo4j Python Driver 5.14) to verify the database connection for my application. I have some follow up questions for this function: If the connection…

---

## [Gds.beta.graph.project.subgraph issues with parameters given from Python](https://community.neo4j.com/t/gds-beta-graph-project-subgraph-issues-with-parameters-given-from-python/61316)

<div class="topic-metadata">

**Author:** [@voiceofsalvia](https://community.neo4j.com/u/voiceofsalvia)\
**Replies:** 2\
**Last updated:** [March 23, 2023, 9:17am UTC](https://community.neo4j.com/t/gds-beta-graph-project-subgraph-issues-with-parameters-given-from-python/61316 "2023-03-23T09:17:23Z")

</div>

Hi there! Please kindly advise how can I manage this: ClientError: {code: Neo.ClientError.Procedure.ProcedureCallFailed} {message: Failed to invoke procedure \`gds.beta.graph.project.subgraph\`: Caused by: java.lang.Null…

---

## [How i will import a large dataset using multithreading in python?](https://community.neo4j.com/t/how-i-will-import-a-large-dataset-using-multithreading-in-python/58469)

<div class="topic-metadata">

**Author:** [@damisg7](https://community.neo4j.com/u/damisg7)\
**Replies:** 2\
**Last updated:** [March 12, 2023, 10:25am UTC](https://community.neo4j.com/t/how-i-will-import-a-large-dataset-using-multithreading-in-python/58469 "2023-03-12T10:25:28Z")

</div>

Hi all, i want to import a large dataset which inlcude json files, (using the apoc library) to neo4j graph db. How i will improve this operation? I used concurrent futures ThreadPoolExecutor as a start for multithreading…

---

## [Transaction Timed Out](https://community.neo4j.com/t/transaction-timed-out/58561)

<div class="topic-metadata">

**Author:** [@myrights99](https://community.neo4j.com/u/myrights99)\
**Replies:** 18\
**Last updated:** [February 6, 2023, 6:57pm UTC](https://community.neo4j.com/t/transaction-timed-out/58561 "2023-02-06T18:57:13Z")

</div>

Hello: I am getting the following error, as shown below. ClientError: {code: Neo.ClientError.Transaction.TransactionTimedOut} {message: The transaction has been terminated. Retry your operation in a new transaction, an…

---

## [Do we have any cypher query builder or we can create templates of cypher queries](https://community.neo4j.com/t/do-we-have-any-cypher-query-builder-or-we-can-create-templates-of-cypher-queries/58506)

<div class="topic-metadata">

**Author:** [@maheshwar\_ligad](https://community.neo4j.com/u/maheshwar_ligad)\
**Replies:** 1\
**Last updated:** [January 27, 2023, 9:32am UTC](https://community.neo4j.com/t/do-we-have-any-cypher-query-builder-or-we-can-create-templates-of-cypher-queries/58506 "2023-01-27T09:32:42Z")

</div>

As neo4j doesn't support the View or materialized view concept which traditional RDBMS provides. Do we have any way to have cypher query builder which will build queries dynamically based on some inputs or some templatin…

---

## [Neo4j Paython Driver](https://community.neo4j.com/t/neo4j-paython-driver/58395)

<div class="topic-metadata">

**Author:** [@myrights99](https://community.neo4j.com/u/myrights99)\
**Replies:** 4\
**Last updated:** [January 26, 2023, 11:43am UTC](https://community.neo4j.com/t/neo4j-paython-driver/58395 "2023-01-26T11:43:06Z")

</div>

Hello: I am new to Neo4j Python Driver, and I am looking for some help on blogs which I am having difficulty finding the right one which shows the code of MERGE creating new nodes with relationships in Python. Any help…

---

## [Odd warning when installing official Neo4j Python driver](https://community.neo4j.com/t/odd-warning-when-installing-official-neo4j-python-driver/58349)

<div class="topic-metadata">

**Author:** [@Maya](https://community.neo4j.com/u/Maya)\
**Replies:** 4\
**Last updated:** [January 16, 2023, 2:16pm UTC](https://community.neo4j.com/t/odd-warning-when-installing-official-neo4j-python-driver/58349 "2023-01-16T14:16:16Z")

</div>

Hi, I'm fairly new to Neo4j. I've been using the official Neo4j driver for Python in my work for some months now without issue. Just this week, I started to notice a warning message when the driver is installed, as can …

---

## [Cannot pass a variable into the run method of Neo4j Python Driver](https://community.neo4j.com/t/cannot-pass-a-variable-into-the-run-method-of-neo4j-python-driver/58347)

<div class="topic-metadata">

**Author:** [@damisg7](https://community.neo4j.com/u/damisg7)\
**Replies:** 4\
**Last updated:** [January 11, 2023, 5:37pm UTC](https://community.neo4j.com/t/cannot-pass-a-variable-into-the-run-method-of-neo4j-python-driver/58347 "2023-01-11T17:37:22Z")

</div>

In the below code i want to pass variables from the run method of Neo4j Python Driver to the query and then forward these variables to the specific cypher file with the runFile method. The problem is that the variables u…

---

## [Importing SNOMED CT International data into neo4j using the neo4j python driver](https://community.neo4j.com/t/importing-snomed-ct-international-data-into-neo4j-using-the-neo4j-python-driver/58328)

<div class="topic-metadata">

**Author:** [@tirtharajsengup](https://community.neo4j.com/u/tirtharajsengup)\
**Replies:** 1\
**Last updated:** [January 10, 2023, 9:48pm UTC](https://community.neo4j.com/t/importing-snomed-ct-international-data-into-neo4j-using-the-neo4j-python-driver/58328 "2023-01-10T21:48:18Z")

</div>

Hello everyone, I have been working on importing SNOMED CT International into neo4j. Currently I'm trying to create two types of Nodes namely Concept Nodes and Description Nodes and one type of relationship between conce…

---

## [How to form a graph DB from relation object](https://community.neo4j.com/t/how-to-form-a-graph-db-from-relation-object/58779)

<div class="topic-metadata">

**Author:** [@Jupyter123](https://community.neo4j.com/u/Jupyter123)\
**Replies:** 24\
**Last updated:** [December 27, 2022, 3:53am UTC](https://community.neo4j.com/t/how-to-form-a-graph-db-from-relation-object/58779 "2022-12-27T03:53:03Z")

</div>

I wrote a python code which will extract meaningful relation from a given text as an input. Please check the below image for better understanding The above image show that, I extracted the relation from the text Now…

---

## [Neo4j python driver with asyncio.gather() crashes](https://community.neo4j.com/t/neo4j-python-driver-with-asyncio-gather-crashes/58673)

<div class="topic-metadata">

**Author:** [@Bertel](https://community.neo4j.com/u/Bertel)\
**Replies:** 4\
**Last updated:** [December 20, 2022, 8:32am UTC](https://community.neo4j.com/t/neo4j-python-driver-with-asyncio-gather-crashes/58673 "2022-12-20T08:32:18Z")

</div>

I've been trying to run some read queries concurrently using asyncio tasks and gather(). I've tried to run the queries concurrently within a transaction. session and driver, but they all fail. Does anyone have an idea on…

---

## [Cypher query convert relationships JSON to text](https://community.neo4j.com/t/cypher-query-convert-relationships-json-to-text/58905)

<div class="topic-metadata">

**Author:** [@CD007](https://community.neo4j.com/u/CD007)\
**Replies:** 1\
**Last updated:** [November 9, 2022, 7:51am UTC](https://community.neo4j.com/t/cypher-query-convert-relationships-json-to-text/58905 "2022-11-09T07:51:12Z")

</div>

Hi I have the following Cypher query query = """MATCH (n {name: '%s'})-\[r\]-\>(b) RETURN \*""" % (entity\_type) and its returning the error TypeError: Object of type Node is not JSON serializable. I was able to successf…

---

## [Python Course test three Attribute Error](https://community.neo4j.com/t/python-course-test-three-attribute-error/58888)

<div class="topic-metadata">

**Author:** [@RSam3](https://community.neo4j.com/u/RSam3)\
**Replies:** 2\
**Last updated:** [November 7, 2022, 3:07am UTC](https://community.neo4j.com/t/python-course-test-three-attribute-error/58888 "2022-11-07T03:07:11Z")

</div>

I haven't seen anyone else posting with this issue, so its probably something I did on accident that broke the test. Nonetheless, just in case someone else runs into this issue, I am posting about it here. I have also p…

---

## [Create millions of relationships in less time](https://community.neo4j.com/t/create-millions-of-relationships-in-less-time/58857)

<div class="topic-metadata">

**Author:** [@bsaichaitanya](https://community.neo4j.com/u/bsaichaitanya)\
**Replies:** 0\
**Last updated:** [November 2, 2022, 7:10am UTC](https://community.neo4j.com/t/create-millions-of-relationships-in-less-time/58857 "2022-11-02T07:10:45Z")

</div>

Hi community, We are trying to import data from orientdb to neo4j by connecting using drivers in python. The database contains 27 million nodes and 25 million relationships. Due to this the cypher queries are taking ext…
