question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: Invalid dir_browser htdocs_path

See original GitHub issue

Describe the bug

wsgidav fails to start with the default configuration, probably because pip install does not install everything that’s required.

To Reproduce

  1. Install it by running
pip3 install --user --use-feature=in-tree-build --compile --no-binary ":all" .
  1. 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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mar10commented, Jan 21, 2022

This worked for me:

cd test_pip
test_pip % python -m venv .venv
test_pip % source .venv/bin/activate
test_pip % python -m pip install -U pip 
test_pip % python -m pip install wsgidav cheroot
test_pip % wsgidav --root . --auth anonymous --browse
0reactions
ElFishicommented, Oct 13, 2022

sry, found it myself. https://wsgidav.readthedocs.io/en/latest/installation.html#linux-macos

Or install the latest (potentially unstable) development version directly from GitHub: $ pip install git+https://github.com/mar10/wsgidav.git

Read more comments on GitHub >

github_iconTop Results From Across the Web

save as index.php not working link path folder such as style ...
Try this. Create new folder in htdoc and move you index.php file to that folder. (Try the basic file first to rule out...
Read more >
when I try to open an HTML file through `http://localhost/xampp ...
I have installed XAMPP , there is a htdocs folder and inside it index.html file , when I try to open it in...
Read more >
Where to Place Local Web Site Content When Using XAMPP ...
A web site located on a local computer is accessed in a browser through the URL localhost and normally served by a local...
Read more >
How to configuring a xampp web server for different root ...
I enter xampp\htdocs directory and I want to type in my browser the address: http://localhost/ and enter xampp\htdocs\myproject\web ...
Read more >
Apache Server wont change root directory
And there is no error..because it "works" it just accesing the wrong direcotry, which is whitin the xxamp/htdocs folder. – RobertNewToJava. Jun ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found