sphinx-autobuild icon indicating copy to clipboard operation
sphinx-autobuild copied to clipboard

Need to require python>=3.10 instead of python>=3.9

Open kevinli1993 opened this issue 1 year ago • 1 comments

Due to the usage of the strict argument in server.py

self.paths = [os.path.realpath(path, strict=True) for path in paths]

we need to require Python 3.10 or above. (Per the documentation, the strict argument is only available after Python 3.10).

Running with Python 3.9 results in the following error/traceback:

$ sphinx-autobuild ... .../_build/html
Traceback (most recent call last):
  File "..../bin/sphinx-autobuild", line 8, in <module>
    sys.exit(main())
  File "..../lib/python3.9/site-packages/sphinx_autobuild/__main__.py", line 54, in main
    watcher = RebuildServer(watch_dirs, ignore_handler, change_callback=builder)
  File "..../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 "..../lib/python3.9/site-packages/sphinx_autobuild/server.py", line 27, in <listcomp>
    self.paths = [os.path.realpath(path, strict=True) for path in paths]
TypeError: realpath() got an unexpected keyword argument 'strict'

kevinli1993 avatar Jun 19 '24 16:06 kevinli1993

Python 3.9 support has been fixed in (unreleased) https://github.com/sphinx-doc/sphinx-autobuild/pull/157

KyeRussell avatar Jun 26 '24 04:06 KyeRussell

Any indication when #157 is going to be released?

narimantos avatar Aug 14 '24 14:08 narimantos

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

A

AA-Turner avatar Sep 03 '24 08:09 AA-Turner