Comments (2)
So I found what was causing the issue, but can't really explain it...
I am using your migrate.py
provided in the phone calls example, which randomly returns the error described above when grakn runs as a container:
def build_phone_call_graph(inputs):
with GraknClient(uri=URI) as client:
with client.session(keyspace = KEYSPACE) as session:
for input in inputs:
print("Loading from [" + input["data_path"] + "] into Grakn ...")
load_data_into_grakn(input, session)
def load_data_into_grakn(input, session):
items = parse_data_to_dictionaries(input)
for item in items:
with session.transaction().write() as transaction:
graql_insert_query = input["template"](item)
print("Executing Graql Query: " + graql_insert_query)
transaction.query(graql_insert_query)
transaction.commit()
print("\nInserted " + str(len(items)) + " items from [ " + input["data_path"] + "] into Grakn.\n")
However, if you write the same thing this way, by simply not passing the session to the function, the error completely disappear...
def build_phone_call_graph(inputs):
with GraknClient(uri=URI) as client:
with client.session(keyspace = KEYSPACE) as session:
for input in inputs:
print("Loading from [" + input["data_path"] + "] into Grakn ...")
# load_data_into_grakn(input, session)
items = parse_data_to_dictionaries(input)
for item in items:
with session.transaction().write() as transaction:
graql_insert_query = input["template"](item)
print("Executing Graql Query: " + graql_insert_query)
transaction.query(graql_insert_query)
transaction.commit()
print("\nInserted " + str(len(items)) + " items from [ " + input["data_path"] + "] into Grakn.\n")
Can't explain why... Only happens with docker.
from typedb-driver-python.
Thanks for reporting this issue, @viktorrobin. Given how old this issue is from Grakn 1.5, and that we have rewritten Grakn in the 2.0 release (and renamed it to TypeDB), we do not believe this issue still exist and will close this now.
from typedb-driver-python.
Related Issues (20)
- GRPC memory leak from opening session using empty with block HOT 2
- Replica tracking simplification HOT 1
- Create an instance from a Type always give back the same iid HOT 2
- Possible Thread Leak in ... HOT 1
- concept rule methods: .get_then() does not include curly braces and is missing final semicolon HOT 2
- Client hangs when iterating through QueryManager answers HOT 1
- Python client significantly slower when retrieving query results than Studio HOT 9
- Internal gRPC call error 8 during concurrent queries HOT 2
- Concept get_iid() method returns incorrect IID HOT 3
- Support Python 3.11 By Bumping grpcio tools HOT 1
- GCP and protobuf requirement updates HOT 3
- Cluster server client: stub creation depends on stub HOT 1
- Can not install typedb-client: legacy-install-failure HOT 2
- Exceptions need more granular types HOT 1
- Implement direct sub (sub!) in client Concept API HOT 4
- Cluster server client - TLS certificate is read once per-transaction.
- Add a function to the Cluster client to return the current user
- Client exposes too many methods to create Options object HOT 1
- Python client datetimes are influenced by time zone HOT 6
- GRPC method not found HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typedb-driver-python.