wsgidav: ValueError: Invalid dir_browser htdocs_path
Describe the bug
wsgidav fails to start with the default configuration, probably because pip install does not install everything that’s required.
To Reproduce
- Install it by running
pip3 install --user --use-feature=in-tree-build --compile --no-binary ":all" .
- Run
wsgidav --root=/usr/share/empty
Expected behavior
It should start.
Screenshots, Log-Files, Stacktrace
Running without configuration file.
Traceback (most recent call last):
File "/home/ciupicri/.local/bin/wsgidav", line 8, in <module>
sys.exit(run())
File "/home/ciupicri/.local/lib/python3.10/site-packages/wsgidav/server/server_cli.py", line 803, in run
app = WsgiDAVApp(config)
File "/home/ciupicri/.local/lib/python3.10/site-packages/wsgidav/wsgidav_app.py", line 237, in __init__
app = mw(self, self.application, config)
File "/home/ciupicri/.local/lib/python3.10/site-packages/wsgidav/dir_browser/_dir_browser.py", line 60, in __init__
raise ValueError(
ValueError: Invalid dir_browser htdocs_path '/home/ciupicri/.local/lib/python3.10/site-packages/wsgidav/dir_browser/htdocs'
Environment
WsgiDAV/4.0.1 Python/3.10.2(64 bit) Linux-5.15.15-200.fc35.x86_64-x86_64-with-glibc2.34
Python from: /usr/bin/python3
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 17 (6 by maintainers)
Commits related to this issue
- Add dir_browser/htdocs folder Update #246 — committed to mar10/wsgidav by mar10 2 years ago
- Add dir_browser/htdocs to setup.cfg Update #246 — committed to mar10/wsgidav by mar10 2 years ago
This worked for me: