failed to build 4.4.0 release with docutils 0.22
seeing build failure when building 4.4.0 release against docutils 0.22
==> /opt/homebrew/Cellar/b2-tools/4.4.0/bin/b2 install-autocomplete --shell bash
Traceback (most recent call last):
File "/opt/homebrew/Cellar/b2-tools/4.4.0/bin/b2", line 5, in <module>
from b2._internal.b2v4.__main__ import main
File "/opt/homebrew/Cellar/b2-tools/4.4.0/libexec/lib/python3.13/site-packages/b2/_internal/b2v4/__main__.py", line 11, in <module>
from b2._internal.b2v4.registry import main
File "/opt/homebrew/Cellar/b2-tools/4.4.0/libexec/lib/python3.13/site-packages/b2/_internal/b2v4/registry.py", line 12, in <module>
from b2._internal.console_tool import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/b2-tools/4.4.0/libexec/lib/python3.13/site-packages/b2/_internal/console_tool.py", line 19, in <module>
from b2._internal._cli.autocomplete_cache import AUTOCOMPLETE # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/b2-tools/4.4.0/libexec/lib/python3.13/site-packages/b2/_internal/_cli/autocomplete_cache.py", line 23, in <module>
from b2._internal.arg_parser import DeprecatedActionMarker
File "/opt/homebrew/Cellar/b2-tools/4.4.0/libexec/lib/python3.13/site-packages/b2/_internal/arg_parser.py", line 21, in <module>
from rst2ansi import rst2ansi
File "/opt/homebrew/Cellar/b2-tools/4.4.0/libexec/lib/python3.13/site-packages/rst2ansi/__init__.py", line 31, in <module>
from .visitor import Writer
File "/opt/homebrew/Cellar/b2-tools/4.4.0/libexec/lib/python3.13/site-packages/rst2ansi/visitor.py", line 27, in <module>
from docutils.utils.error_reporting import SafeString
ModuleNotFoundError: No module named 'docutils.utils.error_reporting'
relates to https://github.com/Homebrew/homebrew-core/pull/231680
I see the same error in github runner, when installing the latest version:
python -m venv venv
source venv/bin/activate
pip install b2
Should be fixed in v4.4.1
@chenrui333 Kindly confirm if your issue has been resolved in a new release.
but still, the build does not work with docutils 0.22, right?
@chenrui333
Indeed, one of the project dependencies relies on functionality in docutils that was deprecated in 0.22.
So, we've pinned docutils version for now, until we migrate away from the aforementioned dependency.
A separate issue has been created for this dependency problem.