Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseException for K9s is something. #43

Open
hans-d opened this issue Jun 13, 2022 · 0 comments
Open

ParseException for K9s is something. #43

hans-d opened this issue Jun 13, 2022 · 0 comments

Comments

@hans-d
Copy link

hans-d commented Jun 13, 2022

Using

onto = Ontology("cnl/file","hello.encnl",stop_on_error=True)

Works with

%%writefile hello.encnl
Kas is something.

Errors with

%%writefile hello.encnl
K9s is something.
---------------------------------------------------------------------------
ParseException                            Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 onto = Ontology("cnl/file","hello.encnl",stop_on_error=True)

File /opt/conda/lib/python3.10/site-packages/cognipy/ontology.py:103, in Ontology.__init__(self, source, arg, verbose, evaluator, graph_attribute_formatter, stop_on_error)
    101 self._uid = cognipy_create()
    102 if source == "cnl/file":
--> 103     cognipy_call(self._uid, "LoadCnl", arg, loadAnnotations,
    104                  modalCheck, passParamsAsCnl, stop_on_error)
    105 elif source == "cnl/string":
    106     cognipy_call(self._uid, "LoadCnlFromString", arg,
    107                  loadAnnotations, modalCheck, passParamsAsCnl, stop_on_error)

File /opt/conda/lib/python3.10/site-packages/cognipy/interop.py:76, in cognipy_call(uid, cmd, *args)
     74 js="\r\n".join(ja)
     75 if fl.strip()=='@exception':
---> 76     raise translate_exception(json.loads(js))
     77 return json.loads(js)

ParseException: {'Errors': [{'Line': 0, 'Column': 0, 'Pos': 0, 'Context': 'K9s is something.\n', 'Hint': 'K^9s is something.'}]}

(running in a jupyther/minimal image with mono added)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant