
























I can't install the package because it always exits with the following error:
========================================================================================================================================================= FAILURES =========================================================================================================================================================
________________________________________________________________________________________________________________ test_spawn_cli_asks_bash_permission_and_shows_tool_output_after_approval[tool-call-stream] ________________________________________________________________________________________________________________
[gw6] linux -- Python 3.12.13 /home/tingel/.cache/yay/mistral-vibe/src/mistral-vibe/.venv/bin/python
streaming_mock_server = <tests.e2e.mock_server.StreamingMockServer object at 0x7f40296abd70>, setup_e2e_env = None, e2e_workdir = PosixPath('/tmp/pytest-of-tingel/pytest-2/popen-gw6/test_spawn_cli_asks_bash_permi0/workdir'), spawned_vibe_process = <function spawned_vibe_process.<locals>.spawn at 0x7f402949a980>
@pytest.mark.timeout(25)
@pytest.mark.parametrize(
"streaming_mock_server",
[pytest.param(_tool_call_factory, id="tool-call-stream")],
indirect=True,
)
def test_spawn_cli_asks_bash_permission_and_shows_tool_output_after_approval(
streaming_mock_server: StreamingMockServer,
setup_e2e_env: None,
e2e_workdir: Path,
spawned_vibe_process: SpawnedVibeProcessFixture,
) -> None:
with spawned_vibe_process(e2e_workdir) as (child, captured):
wait_for_main_screen(child, timeout=15)
child.send("Run a shell command")
child.send("\r")
wait_for_request_count(
lambda: len(streaming_mock_server.requests), expected_count=1, timeout=10
)
> wait_for_rendered_text(
child, captured, needle="Permission for the bash tool", timeout=10
)
/home/tingel/.cache/yay/mistral-vibe/src/mistral-vibe/tests/e2e/test_cli_tui_tool_approval.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
child = <pexpect.pty_spawn.spawn object at 0x7f40296abad0>, captured = <_io.StringIO object at 0x7f4029cc3d00>, needle = 'Permission for the bash tool', timeout = 10
def wait_for_rendered_text(
child: pexpect.spawn, captured: io.StringIO, needle: str, timeout: float
) -> None:
start = time.monotonic()
while time.monotonic() - start < timeout:
if needle in strip_ansi(captured.getvalue()):
return
try:
child.expect(r"\S", timeout=0.1)
except pexpect.TIMEOUT:
pass
except pexpect.EOF as exc:
rendered_tail = strip_ansi(captured.getvalue())[-1200:]
raise AssertionError(
f"Child exited while waiting for rendered text: {needle!r}\n\nRendered tail:\n{rendered_tail}"
) from exc
rendered_tail = strip_ansi(captured.getvalue())[-1200:]
> raise AssertionError(
f"Timed out waiting for rendered text: {needle!r}\n\nRendered tail:\n{rendered_tail}"
)
E AssertionError: Timed out waiting for rendered text: 'Permission for the bash tool'
E
E Rendered tail:
/home/tingel/.cache/yay/mistral-vibe/src/mistral-vibe/tests/e2e/common.py:93: AssertionError
Hi @rubin55 please add --ignore=tests/audio_recorder/test_audio_recorder.py, for some reason it does not works without it on some PCs
Version 2.11.0 came out which fixes the textual issue and mistral-vibe works normally again.
There's currently (since 2.9.4, still persists with 2.9.5) an issue with Mistral Vibe in combination with Textual 8.2.5, which seems to have changed how the ansi theme works. In the meantime, you can downgrade to python-textual 8.2.4:
sudo pacman -U https://archive.archlinux.org/packages/p/python-textual/python-textual-8.2.4-1-any.pkg.tar.zst
/usr/lib/python3.14/subprocess.py:1268: TimeoutExpired ============================================================================ short test summary info ============================================================================= FAILED tests/client/test_config.py::test_command_execution - subprocess.TimeoutExpired: Command '['/usr/bin/uv', 'run', '--frozen', '--with', 'mcp[cli]', 'mcp', 'run', '/home/laurenth/.cache/yay/python-mcp/src/mcp/test_server.py:app', '--help']' timed out after 60 seconds ======================================================= 1 failed, 1091 passed, 95 skipped, 1 xfailed in 528.10s (0:08:48) ========================================================
@PhCl thanks for the report, added python-jsonpatch as a dependency.
$ vibe
Traceback (most recent call last):
File "/usr/bin/vibe", line 172, in <module>
main()
~~~~^^
File "/usr/bin/vibe", line 166, in main
from vibe.cli.cli import run_cli
File "/usr/lib/python3.14/site-packages/vibe/cli/cli.py", line 11, in <module>
from vibe.cli.textual_ui.app import StartupOptions, run_textual_ui
File "/usr/lib/python3.14/site-packages/vibe/cli/textual_ui/app.py", line 51, in <module>
from vibe.cli.textual_ui.remote import RemoteSessionManager, is_progress_event
File "/usr/lib/python3.14/site-packages/vibe/cli/textual_ui/remote/__init__.py", line 3, in <module>
from vibe.cli.textual_ui.remote.remote_session_manager import (
...<2 lines>...
)
File "/usr/lib/python3.14/site-packages/vibe/cli/textual_ui/remote/remote_session_manager.py", line 7, in <module>
from vibe.core.nuage.remote_events_source import RemoteEventsSource
File "/usr/lib/python3.14/site-packages/vibe/core/nuage/remote_events_source.py", line 19, in <module>
from vibe.core.nuage.remote_workflow_event_translator import (
...<2 lines>...
)
File "/usr/lib/python3.14/site-packages/vibe/core/nuage/remote_workflow_event_translator.py", line 7, in <module>
from jsonpatch import JsonPatch, JsonPatchException # type: ignore[import-untyped]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'jsonpatch'
Fixed by installing python-jsonpatch
$ pacman -Ss python-jsonpatch
extra/python-jsonpatch 1.33-6 [installed]
An implementation of the JSON Patch format
All, I just upgraded this package to 2.5.0, but it depends on python-mistralai which needs to be upgraded to 2.0.4 (it's currently still at 1.12.4). I've provided the maintainer there with a patch. If you run into issues, patch python-mistralai yourself with the patch I mentioned in the comments there and you should be good to go (or hold off until the maintainer of python-mistralai has upgraded the package of course).
@PhCl thanks, I added the dependency
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
I added that test and the test mentioned by @kozzi to the ignore list.