sphinx-doc / sphinx-autobuild

Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a hot-reload web server.
MIT License
552 stars 84 forks source link

Got an error while trying to run the dev server #172

Closed Skrillx13 closed 2 months ago

Skrillx13 commented 2 months ago

I have this brand new Sphinx Project, and i installed the auto dev server onto it with pip. When i ran sphinx-autobuild docs docs/build/html (I set it to this path cus my folder is called build, not _build), i got this error:

(venv) jonathanfong@EdFongMBPro-2 DocStrings % sphinx-autobuild docs docs/build/html Traceback (most recent call last): File "/Users/jonathanfong/DocStrings/venv/bin/sphinx-autobuild", line 8, in sys.exit(main()) File "/Users/jonathanfong/DocStrings/venv/lib/python3.9/site-packages/sphinx_autobuild/main.py", line 54, in main watcher = RebuildServer(watch_dirs, ignore_handler, change_callback=builder) File "/Users/jonathanfong/DocStrings/venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 27, in init self.paths = [os.path.realpath(path, strict=True) for path in paths] File "/Users/jonathanfong/DocStrings/venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 27, in self.paths = [os.path.realpath(path, strict=True) for path in paths] TypeError: realpath() got an unexpected keyword argument 'strict'

Inside my project theres a venv folder, but thats because i use a python virtual enviroment. Is this supposed to happen?

AA-Turner commented 2 months ago

https://pypi.org/project/sphinx-autobuild/2024.9.3/

A