Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

hotfix numpy missing

Magnus Müller2cdfe21ab6ec
diff --git a/browser_use/browser/video_recorder.py b/browser_use/browser/video_recorder.py
index af0d6f05f..4bd5b0af7 100644
--- a/browser_use/browser/video_recorder.py
+++ b/browser_use/browser/video_recorder.py
@@ -7,13 +7,12 @@ import subprocess
from pathlib import Path
from typing import Optional
-import numpy as np
-
from browser_use.browser.profile import ViewportSize
try:
import imageio.v2 as iio
import imageio_ffmpeg
+ import numpy as np
from imageio.core.format import Format
IMAGEIO_AVAILABLE = True
diff --git a/pyproject.toml b/pyproject.toml
index bcbcc9a67..4bc2db487 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -64,7 +64,8 @@ aws = [
"boto3>=1.38.45"
]
video = [
- "imageio[ffmpeg]>=2.37.0"
+ "imageio[ffmpeg]>=2.37.0",
+ "numpy>=2.3.2",
]
examples = [
"agentmail>=0.0.53",