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

__init__() takes 2 positional arguments but 3 were given #30

Open
thesteve0 opened this issue Dec 13, 2024 · 1 comment
Open

__init__() takes 2 positional arguments but 3 were given #30

thesteve0 opened this issue Dec 13, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@thesteve0
Copy link

Describe the bug
My sphinx site builds fine with

sphinx-build -M html ./docs/source ./docs/build 

but if I run it with the markdown flag it errors out

> sphinx-build -M markdown ./docs/source ./docs/build 
Running Sphinx v3.5.4

Exception occurred:
  File "/home/spousty/git/fifty-one-doc-sphinx-markdown-builder/fiftyone/venv/lib/python3.9/site-packages/sphinx_markdown_builder/builder.py", line 49, in __init__
    super().__init__(app, env)
TypeError: __init__() takes 2 positional arguments but 3 were given
The full traceback has been saved in /tmp/sphinx-err-ls1_o0el.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!

I am trying to run it against https://github.com/voxel51/fiftyone/tree/develop/docs

This error happens whether I run the sphinx-build command natively or if I change the sphinx-build command in the bash file:
https://github.com/voxel51/fiftyone/blob/e7f3eddb408c142b59233571c3a7319c6d1c0fcb/docs/generate_docs.bash#L128

Not really that familiar with sphinx and nothing helpful comes up in Google.

To Reproduce
Make sure to create a python 3.9 environment.
Follow the directions on the sphinx-markdown-builder page
Then follow the instructions to build the doc
https://github.com/voxel51/fiftyone/tree/develop/docs

Expected behavior
I expect the docs to build with md as the output

Environment (please complete the following information):

  • Ubuntu
  • Version 22.04
  • Python 3.9
  • sphinx-markdown-builder latest

Additional context
Add any other context about the problem here.

@thesteve0 thesteve0 added the bug Something isn't working label Dec 13, 2024
@liran-funaro
Copy link
Owner

Thanks for taking the time to report.

Running Sphinx v3.5.4

Only Sphinx versions greater than v5.1 are supported.
Please upgrade and update here if it resolves your issue.

@liran-funaro liran-funaro added help wanted Extra attention is needed and removed bug Something isn't working labels Jan 12, 2025
@liran-funaro liran-funaro changed the title [BUG] __init__() takes 2 positional arguments but 3 were given __init__() takes 2 positional arguments but 3 were given Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants