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

AttributeError when running ontodocs #67

Closed
soderluk opened this issue Oct 29, 2018 · 1 comment
Closed

AttributeError when running ontodocs #67

soderluk opened this issue Oct 29, 2018 · 1 comment
Labels

Comments

@soderluk
Copy link

This used to work, but apparently there has been some changes in Ontospy, which breaks things. I've been using Ontodocs for generating HTML pages for our JSON-LD ontology and hosting them on Github Pages. Now today I tried to release an update, and the following happened:

Traceback (most recent call last):
  File "/usr/bin/ontodocs", line 11, in <module>
    sys.exit(main_cli())
  File "/usr/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/ontodocs/main.py", line 89, in main_cli
    url = action_visualize(source, fromshell=False, path=outputpath, title=title, theme=theme, verbose=verbose)
  File "/usr/lib/python3.6/site-packages/ontodocs/core/builder.py", line 170, in action_visualize
    g = Ontospy(ontouri, verbose=verbose)
  File "/usr/lib/python3.6/site-packages/ontospy/core/ontospy.py", line 89, in __init__
    self.build_all(verbose=verbose, hide_base_schemas=hide_base_schemas)
  File "/usr/lib/python3.6/site-packages/ontospy/core/ontospy.py", line 162, in build_all
    self.build_classes(hide_base_schemas)
  File "/usr/lib/python3.6/site-packages/ontospy/core/ontospy.py", line 299, in build_classes
    onto.all_classes += [aClass]
AttributeError: 'list' object has no attribute 'all_classes'

Using version 1.2.1 of ontodocs.
Seems like there's an issue with ontospy at the moment. The following command was used:
echo 2 | ontodocs /src/ontologies/ont.jsonld -o /tmp/html" -t "Title" --theme=darkly

@lambdamusic
Copy link
Owner

closing this issue here and following up within ontospy..

@lambdamusic lambdamusic transferred this issue from lambdamusic/Ontodocs Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants