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

ogr bug? #606

Open
dosumis opened this issue Dec 1, 2021 · 1 comment
Open

ogr bug? #606

dosumis opened this issue Dec 1, 2021 · 1 comment

Comments

@dosumis
Copy link

dosumis commented Dec 1, 2021

Trying to use ogr from local install following examples from docs I consistently get errors like this:

$ venv/bin/python bin/ogr.py -r cl neuron
/Users/davidos/Documents/GitHub/ontobio/venv/lib/python3.9/site-packages/rdflib_jsonld/__init__.py:9: DeprecationWarning: The rdflib-jsonld package has been integrated into rdflib as of rdflib==6.0.1.  Please remove rdflib-jsonld from your project's dependencies.
  warnings.warn(
Traceback (most recent call last):
  File "/Users/davidos/Documents/GitHub/ontobio/bin/ogr.py", line 197, in <module>
    main()
  File "/Users/davidos/Documents/GitHub/ontobio/bin/ogr.py", line 136, in main
    for id in ont.resolve_names(args.ids,
  File "/Users/davidos/Documents/GitHub/ontobio/ontobio/sparql/sparql_ontology.py", line 130, in resolve_names
    return super().resolve_names(names, synonyms, **args)
  File "/Users/davidos/Documents/GitHub/ontobio/ontobio/ontol.py", line 1006, in resolve_names
    for s in self.synonyms(nid):
  File "/Users/davidos/Documents/GitHub/ontobio/ontobio/sparql/sparql_ontology.py", line 100, in synonyms
    self.all_synonyms()
  File "/Users/davidos/Documents/GitHub/ontobio/ontobio/sparql/sparql_ontology.py", line 111, in all_synonyms
    self.add_synonym(syn)
  File "/Users/davidos/Documents/GitHub/ontobio/ontobio/ontol.py", line 875, in add_synonym
    if 'meta' not in n:
TypeError: argument of type 'NoneType' is not iterable
@dosumis
Copy link
Author

dosumis commented Dec 2, 2021

I now have this working - at least partly - from local files. Perhaps the main problem is very uninformative error messages. The above looks like a basic JSON parsing issue, which should be caught.

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