Skip to content

ogr bug? #606

Description

@dosumis

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions