Open ghost opened 3 years ago
The traceback above indicates the issue is in these lines:
https://github.com/pdoc3/pdoc/blob/c2c13200a630f97e5a7b2cba292b0dc9deb58b53/pdoc/cli.py#L417-L418
However, args.output_dir
is only set to default non-None when --html
or --http
:
https://github.com/pdoc3/pdoc/blob/c2c13200a630f97e5a7b2cba292b0dc9deb58b53/pdoc/cli.py#L440-L441
I think the condition here should include --html
and --http
as adding JavaScript search makes little sense otherwise:
https://github.com/pdoc3/pdoc/blob/c2c13200a630f97e5a7b2cba292b0dc9deb58b53/pdoc/cli.py#L582-L585
All of this is likely unrelated to the stalled page load you're seeing with --http :
.
I'm not going to lie, I didn't understand one bit of what you said. Unlike you, I don't have an overall understanding of the software structure so your going to have to simplify what your saying.
https://github.com/pdoc3/pdoc/commit/251d61a6e252e92a12c77670f81a8d3d4b325642 should fix the traceback you quoted. Thanks.
--http :
stalling would be great to pinpoint. We don't have any infinite loops I think. Might any of the imported packages be waiting for stdin input?
instead loads up the installed version of spotdl
We do a bit of magic to import the specified module. We maybe chdir, then defer to importlib.import_module()
:
https://github.com/pdoc3/pdoc/blob/251d61a6e252e92a12c77670f81a8d3d4b325642/pdoc/__init__.py#L198-L228
Might any of the imported packages be waiting for stdin input?
Nope. That's come up before, so I checked. I'll retry today
Expected Behavior
Actual Behavior
Steps to Reproduce
1.run
pdoc --template-dir .\docs\config\ --http : .\spotdl\
from the root of this repoAdditional info
pdoc version: 0.9.2
I essentially want the
spotdl.defaults
subpackage to be rendered, runningpdoc -http : spotdl.defaults
insteads loads up the installed version of spotdl (a modified personal copy of spotDL/spotify-downloader)It works just fine for every other package I've tried so far
Local CLI Output
When I use the
--http :
flag, nothing happens, localhost:8080 just loads forever (a very long time)