You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to build doc from a venv, but when I try make html I have this error :
File "/path_to_project/sources/venv/lib/python3.7/site-packages/sphinx/application.py", line 1069, in add_source_parser
self.registry.add_source_parser(*args, **kwargs)
TypeError: add_source_parser() takes 2 positional arguments but 3 were given
make: *** [Makefile:23: html] Error 2
Here is the log file :
# Sphinx version: 3.0.4
# Python version: 3.7.3 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:
# Loaded extensions:
Traceback (most recent call last):
File "/path_to_project/sources/venv/lib/python3.7/site-packages/sphinx/cmd/build.py", line 279, in build_main
args.tags, args.verbosity, args.jobs, args.keep_going)
File "/path_to_project/sources/venv/lib/python3.7/site-packages/sphinx/application.py", line 244, in __init__
self.setup_extension(extension)
File "/path_to_project/sources/venv/lib/python3.7/site-packages/sphinx/application.py", line 398, in setup_extension
self.registry.load_extension(self, extname)
File "/path_to_project/sources/venv/lib/python3.7/site-packages/sphinx/registry.py", line 414, in load_extension
metadata = setup(app)
File "/path_to_project/sources/venv/lib/python3.7/site-packages/m2r.py", line 652, in setup
app.add_source_parser('.md', M2RParser)
File "/path_to_project/sources/venv/lib/python3.7/site-packages/sphinx/application.py", line 1069, in add_source_parser
self.registry.add_source_parser(*args, **kwargs)
TypeError: add_source_parser() takes 2 positional arguments but 3 were given
the makefile :
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXRST = sphinx-apidoc
SPHINXBUILD = sphinx-build
SPHINXPROJ = Windviewer
SPHINXMODULE = windviewer
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
rst:
@$(SPHINXRST) -f -o "$(SOURCEDIR)" "../../$(SPHINXMODULE)"
html:
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
I've allready build the doc but not in the venv, and it was working, but I add import modules problems so I try it in the venv, see the post :
I've remove the 'm2r' extension in my conf.py, and the documentation is generated. But how can I use it? I need to add some markdown like a README.md from gitlab repo.
The add_source_parser() API has changed since Sphinx-1.8.0. And it seems m2r extension does not use the new style. That was filed as miyakogi/m2r#51. Please pin Sphinx to 2.x to wait for the update.
Thanks,
Hello,
I'm trying to build doc from a venv, but when I try make html I have this error :
Here is the log file :
the makefile :
I've allready build the doc but not in the venv, and it was working, but I add import modules problems so I try it in the venv, see the post :
autodoc: failed to import module 'routes' from module 'app_folder'
Thanks for the feedback!
Gilou
The text was updated successfully, but these errors were encountered: