Coder Social home page Coder Social logo

davidism / sphinxcontrib-log-cabinet Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 16 KB

Organize changelog directives in Sphinx docs.

Home Page: https://pypi.org/project/sphinxcontrib-log-cabinet

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
changelog documentation sphinx sphinx-extension

sphinxcontrib-log-cabinet's People

Contributors

davidism avatar segevfiner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sphinxcontrib-log-cabinet's Issues

TypeError: super() argument 1 must be type, not classobj

when compile doc

$ sphinx-build -b html docs/ _build
# Sphinx version: 1.7.4
# Python version: 2.7.13 (CPython)
# Docutils version: 0.13.1 release
# Jinja2 version: 2.10
# Last messages:
#   
#   looking for now-outdated files...
#   none found
#   pickling environment...
#   done
#   checking consistency...
#   done
#   preparing documents...
#   done
#   writing output... [  1%] advanced_foreword
# Loaded extensions:
#   sphinx.ext.autodoc (1.7.4) from /usr/local/lib/python2.7/dist-packages/sphinx/ext/autodoc/__init__.pyc
#   sphinx.ext.intersphinx (1.7.4) from /usr/local/lib/python2.7/dist-packages/sphinx/ext/intersphinx.pyc
#   alabaster (0.7.10) from /usr/local/lib/python2.7/dist-packages/alabaster/__init__.pyc
#   pallets_sphinx_themes (1.0.0) from /usr/local/lib/python2.7/dist-packages/pallets_sphinx_themes/__init__.pyc
#   sphinxcontrib.log_cabinet (1.0.0) from /usr/local/lib/python2.7/dist-packages/sphinxcontrib/log_cabinet.pyc
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/sphinx/cmdline.py", line 304, in main
    app.build(args.force_all, filenames)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 331, in build
    self.builder.build_update()
  File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 338, in build_update
    'out of date' % len(to_build))
  File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 399, in build
    self.write(docnames, list(updated_docnames), method)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 436, in write
    self._write_serial(sorted(docnames))
  File "/usr/local/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 443, in _write_serial
    doctree = self.env.get_and_resolve_doctree(docname, self)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/environment/__init__.py", line 813, in get_and_resolve_doctree
    self.apply_post_transforms(doctree, docname)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/environment/__init__.py", line 865, in apply_post_transforms
    self.app.emit('doctree-resolved', doctree, docname)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 444, in emit
    return self.events.emit(event, self, *args)
  File "/usr/local/lib/python2.7/dist-packages/sphinx/events.py", line 79, in emit
    results.append(callback(*args))
  File "/usr/local/lib/python2.7/dist-packages/sphinxcontrib/log_cabinet.py", line 28, in handle_doctree_resolved
    visitor = ChangelogVisitor(doctree, app)
  File "/usr/local/lib/python2.7/dist-packages/sphinxcontrib/log_cabinet.py", line 62, in __init__
    super(ChangelogVisitor, self).__init__(document)
TypeError: super() argument 1 must be type, not classobj

Distributor ID: Debian
Description: Debian GNU/Linux 9.3 (stretch)
Release: 9.3
Codename: stretch

'NoneType' object has no attribute 'parent'

Building (werkzeug) docs on 3.6 fails into:

Traceback (most recent call last):
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/cmdline.py", line 304, in main
    app.build(args.force_all, filenames)
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/application.py", line 331, in build
    self.builder.build_update()
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 338, in build_update
    'out of date' % len(to_build))
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 399, in build
    self.write(docnames, list(updated_docnames), method)
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 436, in write
    self._write_serial(sorted(docnames))
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 443, in _write_serial
    doctree = self.env.get_and_resolve_doctree(docname, self)
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/environment/__init__.py", line 813, in get_and_resolve_doctree
    self.apply_post_transforms(doctree, docname)
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/environment/__init__.py", line 865, in apply_post_transforms
    self.app.emit('doctree-resolved', doctree, docname)
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/application.py", line 444, in emit
    return self.events.emit(event, self, *args)
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinx/events.py", line 79, in emit
    results.append(callback(*args))
  File "/home/musttu/.pyenv/versions/3.6.4/envs/werkzeug3/lib/python3.6/site-packages/sphinxcontrib/log_cabinet.py", line 35, in handle_doctree_resolved
    del after.parent[index:index + len(log)]
AttributeError: 'NoneType' object has no attribute 'parent'

Same on 3.4 (didn't test other 3.x versions).

super() argument 1 must be type, not classobj

Got this error, maybe you could help shed some light on what this means? A syntax change in python, maybe? Thank you.

STANLEY => docs ⛰  >>> python --version
Python 2.7.15rc1
STANLEY => docs ⛰  >>> make epub
Running Sphinx v1.8.3
loading intersphinx inventory from https://docs.sqlalchemy.org/objects.inv...
intersphinx inventory has moved: https://docs.sqlalchemy.org/objects.inv -> https://docs.sqlalchemy.org/en/latest/objects.inv
loading intersphinx inventory from https://pythonhosted.org/blinker/objects.inv...
loading intersphinx inventory from http://jinja.pocoo.org/docs/objects.inv...
loading intersphinx inventory from http://werkzeug.pocoo.org/docs/objects.inv...
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://itsdangerous.palletsprojects.com/objects.inv...
intersphinx inventory has moved: https://itsdangerous.palletsprojects.com/objects.inv -> https://itsdangerous.palletsprojects.com/en/1.1.x/objects.inv
loading intersphinx inventory from https://click.palletsprojects.com/objects.inv...
intersphinx inventory has moved: https://click.palletsprojects.com/objects.inv -> https://click.palletsprojects.com/en/7.x/objects.inv
loading intersphinx inventory from https://wtforms.readthedocs.io/en/stable/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [epub]: targets for 79 source files that are out of date
updating environment: 79 added, 0 changed, 0 removed
reading sources... [100%] views
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [  1%] advanced_foreword
Exception occurred:
  File "/usr/local/lib/python2.7/dist-packages/sphinxcontrib/log_cabinet.py", line 62, in __init__
    super(ChangelogVisitor, self).__init__(document)
TypeError: super() argument 1 must be type, not classobj
The full traceback has been saved in /tmp/sphinx-err-OmSGgn.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Makefile:20: recipe for target 'epub' failed
make: *** [epub] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.