Skip to content

Bug when running the Readme Usage  #207

@Nkarnaud

Description

@Nkarnaud

When running the usage in the readme am having issues with context

To Reproduce
1- Install the python client
2- Connect to the terminusdb
3- Create a database
4- Error occurs when creating the db schema

Expected behavior
Expecting to have a newly created schema

Error logs
.Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/nkeumo/Documents/pycharmWorkspace/terminusdb-client-python/terminusdb_client/woqlquery/woql_query.py", line 481, in execute return client.query(self, commit_msg, file_dict=file_dict) File "/Users/nkeumo/Documents/pycharmWorkspace/terminusdb-client-python/terminusdb_client/woqlclient/woqlClient.py", line 1101, in query request_woql_query["@context"] = self._context AttributeError: 'WOQLClient' object has no attribute '_context'

This occurs when I run this command WOQLQuery().doctype("scm:student").property("scm:name", "xsd:string").execute(client, "student schema created.")

System information (please complete the following information):

  • OS: [e.g. Mac OS Bigsur]
  • terminus-client-python dev version

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions