jaraco / jaraco.packaging

MIT License
4 stars 4 forks source link

RTD no longer building docs #8

Closed jaraco closed 1 year ago

jaraco commented 1 year ago

It seams that RTD is failing when building docs:

/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/bin/python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
Running Sphinx v5.2.2
making output directory... done

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/sphinx/events.py", line 94, in emit
    results.append(listener.handler(self.app, *args))
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/jaraco/packaging/sphinx.py", line 30, in load_config_from_setup
    meta = load_metadata(root)
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/build/util.py", line 50, in project_wheel_metadata
    with build.env.IsolatedEnvBuilder() as env:
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/build/env.py", line 108, in __enter__
    executable, scripts_dir = _create_isolated_env_venv(self._path)
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/build/env.py", line 272, in _create_isolated_env_venv
    pip_distribution = next(iter(metadata.distributions(name='pip', path=[purelib])))  # type: ignore[no-untyped-call]
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/sphinx/cmd/build.py", line 278, in build_main
    args.pdb)
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 262, in __init__
    self._init_builder()
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 335, in _init_builder
    self.events.emit('builder-inited')
  File "/home/docs/checkouts/readthedocs.org/user_builds/jaracopackaging/envs/latest/lib/python3.7/site-packages/sphinx/events.py", line 106, in emit
    (listener.handler, name), exc, modname=modname) from exc
sphinx.errors.ExtensionError: Handler <function load_config_from_setup at 0x7ff022d570e0> for event 'builder-inited' threw an exception (exception: )

Extension error (jaraco.packaging.sphinx):
Handler <function load_config_from_setup at 0x7ff022d570e0> for event 'builder-inited' threw an exception (exception: )
Command time: 1s Return: 2

Docs build fine for me locally, even if I uninstall pip.