AttributeError: type object 'MarkdownBuilder' has no attribute 'supported'
See original GitHub issueHi, I’m running into a problem when I try to run this package.
I copied the conf.py example for sphinx 1.8 (I’m using 2.2) but needed to edit the example code as is seems a little out of date, it references a sphinx_markdown_parser module.
I’m running from tox with this command: -
tox sphinx-build -M markdown containers/source {env:DOC_OUTPUT_FOLDER:'build'}/containersmd
Error
Exception occurred:
File "/home/matt.everett/code/mkc/microservices/service-api/src/.tox/doc/lib/python3.7/site-packages/sphinx/registry.py", line 302, in add_source_parser
if len(parser.supported) == 0:
AttributeError: type object 'MarkdownBuilder' has no attribute 'supported'
Log
# Sphinx version: 2.2.0
# Python version: 3.7.3 (CPython)
# Docutils version: 0.13.1 release
# Jinja2 version: 2.10.1
# Last messages:
# Loaded extensions:
Traceback (most recent call last):
File "/home/matt.everett/code/mkc/microservices/service-api/src/.tox/doc/lib/python3.7/site-packages/sphinx/cmd/build.py", line 275, in build_main
args.tags, args.verbosity, args.jobs, args.keep_going)
File "/home/matt.everett/code/mkc/microservices/service-api/src/.tox/doc/lib/python3.7/site-packages/sphinx/application.py", line 250, in __init__
self.config.setup(self)
File "/home/matt.everett/code/mkc/microservices/service-api/src/doc/containers/source/conf.py", line 63, in setup
app.add_source_parser(MarkdownBuilder)
File "/home/matt.everett/code/mkc/microservices/service-api/src/.tox/doc/lib/python3.7/site-packages/sphinx/application.py", line 1133, in add_source_parser
self.registry.add_source_parser(*args, **kwargs)
File "/home/matt.everett/code/mkc/microservices/service-api/src/.tox/doc/lib/python3.7/site-packages/sphinx/registry.py", line 302, in add_source_parser
if len(parser.supported) == 0:
AttributeError: type object 'MarkdownBuilder' has no attribute 'supported'
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Issues · clayrisser/sphinx-markdown-builder - GitHub
Contribute to clayrisser/sphinx-markdown-builder development by creating an account on ... AttributeError: type object 'MarkdownBuilder' has no attribut.
Read more >Python Attribute Error: type object has no attribute
I am new to Python and programming in general and try to teach myself some Object-Oriented Python and got this ...
Read more >Extension API — Python-Markdown 3.4.1 documentation
This simple example removes any lines with 'NO RENDER' before processing: ... however, in rare cases it could be some other type of...
Read more >Convert Python docstrings to GitHub markdown readmes
Step 1: Sphinx-markdown-builder. pip install sphinx sphinx-markdown-builder; ... attributeerror: 'numpy.ndarray' object has no attribute 'geta1'.
Read more >sphinx-markdown-builder - PyPI
sphinx-markdown-builder · Built by Silicon Hills LLC · Recommended Projects · Features · Installation · Dependencies · Usage · Support · Screenshots.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Actually, yes. Why do you even have this code on the front page? I mean, all of that is to register a markdown parser, ie. to read markdown source files. And the point of this project is to build markdown output, no?
I removed all of that from my conf.py, ran “make markdown” and got the .md files I wanted as output…
Thanks @SwampFalc
I’ll clean up the
conf.py
file