-
Notifications
You must be signed in to change notification settings - Fork 450
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Describe the bug
$ tox -e docs
[...]
docs: recreate env because python changed version_info=[3, 11, 9, 'final', 0]->[3, 11, 11, 'final', 0] | executable='/nix/store/sqb1x23n9wzjs9jb3c06cpajhxsmc9j8-python3-3.11.9/bin/python3.11'->'/nix/store/s3pq6y9qhdqc9mab8yir2mr16xr7rx5p-python3-3.11.11/bin/python3.11' | virtualenv version='20.26.2'->'20.26.6'
docs: remove tox env folder /Users/ihrachys/src/instructlab/.tox/docs
docs: install_deps> python -I -m pip install git+https://github.com/click-contrib/click-man@24ec8377e3c24378417f6fc4f571b4f585d7df6b -r docs/requirements.txt
pkg: _optional_hooks> python /nix/store/rsvyp3bx2rwb5h4pa40c3lbkydwg46rw-python3.11-pyproject-api-1.8.0/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
pkg: get_requires_for_build_wheel> python /nix/store/rsvyp3bx2rwb5h4pa40c3lbkydwg46rw-python3.11-pyproject-api-1.8.0/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
pkg: build_wheel> python /nix/store/rsvyp3bx2rwb5h4pa40c3lbkydwg46rw-python3.11-pyproject-api-1.8.0/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
docs: install_package_deps> python -I -m pip install 'GitPython>=3.1.42' 'PyYAML>=6.0.0' 'boto3>=1.35.96' 'click-didyoumean>=0.3.0' 'click<9.0.0,>=8.1.7' 'datasets>=2.18.0' 'docling-core[chunking]>=2.10.0' 'gguf>=0.6.0' 'haystack-ai>=2.8' 'httpx>=0.25.0' 'huggingface-hub[hf_transfer]>=0.1.8' 'instructlab-eval>=0.5.1' 'instructlab-quantize>=0.1.0' 'instructlab-schema>=0.4.2' 'instructlab-sdg>=0.7.0' 'instructlab-training>=0.7.0' 'llama-cpp-python[server]==0.3.6' 'mlx<0.6.0,>=0.5.1; sys_platform == "darwin" and platform_machine == "arm64"' 'numpy<2.0.0,>=1.26.4' 'openai>=1.13.3' 'peft>=0.9.0' 'prompt-toolkit>=3.0.38' 'psutil>=6.0.0' 'pydantic-yaml>=1.2.0' 'pydantic>=2.7.4' 'rich>=13.3.1' 'rouge-score>=0.1.2' 'ruamel.yaml>=0.17.0' 'sentence-transformers>=3.0.0' 'sentencepiece>=0.2.0' 'tokenizers>=0.11.1' 'toml>=0.10.2' 'torch<2.6.0,>=2.3.0' 'tqdm>=4.66.2' 'transformers>=4.41.2' 'trl>=0.12.2' 'wandb>=0.16.4' 'xdg-base-dirs>=6.0.1'
docs: install_package> python -I -m pip install --force-reinstall --no-deps /Users/ihrachys/src/instructlab/.tox/.tmp/package/102/instructlab-0.23.0rc1.dev141-py3-none-any.whl
docs: commands[0]> sphinx-build -M html docs docs/build -j auto --keep-going --fail-on-warning --fresh-env -n
Running Sphinx v8.2.0
loading translations [en]... done
Versions
========
* Platform: darwin; (macOS-15.3-arm64-arm-64bit)
* Python version: 3.11.11 (CPython)
* Sphinx version: 8.2.0
* Docutils version: 0.21.2
* Jinja2 version: 3.1.5
* Pygments version: 2.19.1
Last Messages
=============
None.
Loaded Extensions
=================
None.
Traceback
=========
File "/Users/ihrachys/src/instructlab/.tox/docs/lib/python3.11/site-packages/sphinx/util/typing.py", line 626, in __getattr__
raise AttributeError(msg)
AttributeError: module 'sphinx.util.typing' has no attribute 'ForwardRef'
The full traceback has been saved in:
/var/folders/45/1q1rx6cn7jbcn2ty852w0g_r0000gn/T/sphinx-err-1gy4qvol.log
To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
docs: exit 2 (4.79 seconds) /Users/ihrachys/src/instructlab> sphinx-build -M html docs docs/build -j auto --keep-going --fail-on-warning --fresh-env -n pid=85743
docs: FAIL code 2 (98.93=setup[94.14]+cmd[4.79] seconds)
evaluation failed :( (99.05 seconds)
This affects CI too.
This is an issue in tox-dev/sphinx-autodoc-typehints#523 that was triggered by the new Sphinx 8.2.0 release. We should pin Sphinx for now I think.