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

doc2path() takes from 2 to 3 positional arguments but 4 were given #339

Open
nshaud opened this issue Sep 17, 2021 · 0 comments
Open

doc2path() takes from 2 to 3 positional arguments but 4 were given #339

nshaud opened this issue Sep 17, 2021 · 0 comments

Comments

@nshaud
Copy link

nshaud commented Sep 17, 2021

When compiling a Sphinx with the jupyter target, I got this error:

File "(...)/lib/python3.9/site-packages/sphinxcontrib/jupyter/builders/jupyter.py", line 115, in get_outdated_docs
targetname = self.env.doc2path(docname, self.outdir,
TypeError: doc2path() takes from 2 to 3 positional arguments but 4 were given

I use Python 3.9.6, Sphinx 4.2.0 and sphinxcontrib-jupyter 0.5.10.

The signature of the doc2path seems to have changed in Sphinx. It now only takes 2 arguments (docname and base) instead of 3.

Removing self.out_suffix in jupyter.py seems to fix the error but I am unsure of the consequences of changing this.

I assume that jupyterpdf.py needs the same modification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant