Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non of the installation process works neither docker or the uv method #414

Open
faithfulojebiyi opened this issue Mar 18, 2025 · 10 comments

Comments

@faithfulojebiyi
Copy link

try to follow the steps in a brand new environment using the main branch

@warmshao
Copy link
Collaborator

what's the problem with uv installation?

@TheSenseiRyuu
Copy link

TheSenseiRyuu commented Mar 18, 2025

Hey, same issue there:
(base) kyllian@Air-de-Kyllian browser-use % git clone https://github.com/browser-use/web-ui.git
cd web-ui
Cloning into 'web-ui'...
remote: Enumerating objects: 1576, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 1576 (delta 0), reused 4 (delta 0), pack-reused 1569 (from 1)
Receiving objects: 100% (1576/1576), 938.19 KiB | 5.39 MiB/s, done.
Resolving deltas: 100% (969/969), done.
(base) kyllian@Air-de-Kyllian web-ui % uv venv --python 3.11
Using CPython 3.11.11
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
(base) kyllian@Air-de-Kyllian web-ui % source .venv/bin/activate
(web-ui) (base) kyllian@Air-de-Kyllian web-ui % uv pip install -r requirements.txt
Resolved 86 packages in 359ms
Installed 86 packages in 559ms

  • aiofiles==23.2.1
  • annotated-types==0.7.0
  • anthropic==0.49.0
  • anyio==4.9.0
  • backoff==2.2.1
  • beautifulsoup4==4.13.3
  • browser-use==0.1.40
  • certifi==2025.1.31
  • charset-normalizer==3.4.1
  • click==8.1.8
  • defusedxml==0.7.1
  • distro==1.9.0
  • fastapi==0.115.11
  • ffmpy==0.5.0
  • filelock==3.18.0
  • fsspec==2025.3.0
  • gradio==5.10.0
  • gradio-client==1.5.3
  • greenlet==3.1.1
  • h11==0.14.0
  • httpcore==1.0.7
  • httpx==0.28.1
  • httpx-sse==0.4.0
  • huggingface-hub==0.29.3
  • idna==3.10
  • jinja2==3.1.6
  • jiter==0.9.0
  • json-repair==0.39.1
  • jsonpatch==1.33
  • jsonpointer==3.0.0
  • langchain-anthropic==0.3.3
  • langchain-core==0.3.45
  • langchain-mistralai==0.2.4
  • langchain-ollama==0.2.2
  • langchain-openai==0.3.1
  • langsmith==0.3.15
  • markdown-it-py==3.0.0
  • markdownify==0.14.1
  • markupsafe==2.1.5
  • mdurl==0.1.2
  • monotonic==1.6
  • numpy==2.2.4
  • ollama==0.4.7
  • openai==1.66.3
  • orjson==3.10.15
  • packaging==24.2
  • pandas==2.2.3
  • pillow==11.1.0
  • playwright==1.51.0
  • posthog==3.21.0
  • pydantic==2.10.6
  • pydantic-core==2.27.2
  • pydub==0.25.1
  • pyee==12.1.1
  • pygments==2.19.1
  • pyperclip==1.9.0
  • python-dateutil==2.9.0.post0
  • python-dotenv==1.0.1
  • python-multipart==0.0.20
  • pytz==2025.1
  • pyyaml==6.0.2
  • regex==2024.11.6
  • requests==2.32.3
  • requests-toolbelt==1.0.0
  • rich==13.9.4
  • ruff==0.11.0
  • safehttpx==0.1.6
  • semantic-version==2.10.0
  • setuptools==76.1.0
  • shellingham==1.5.4
  • six==1.17.0
  • sniffio==1.3.1
  • soupsieve==2.6
  • starlette==0.46.1
  • tenacity==9.0.0
  • tiktoken==0.9.0
  • tokenizers==0.21.1
  • tomlkit==0.13.2
  • tqdm==4.67.1
  • typer==0.15.2
  • typing-extensions==4.12.2
  • tzdata==2025.1
  • urllib3==2.3.0
  • uvicorn==0.34.0
  • websockets==14.2
  • zstandard==0.23.0
    (web-ui) (base) kyllian@Air-de-Kyllian web-ui % playwright install
    Removing unused browser at /Users/kyllian/Library/Caches/ms-playwright/chromium-1155
    Downloading Firefox 135.0 (playwright build v1475) from https://cdn.playwright.dev/dbazure/download/playwright/builds/firefox/1475/firefox-mac-arm64.zip
    84.9 MiB [====================] 100% 0.0s
    Firefox 135.0 (playwright build v1475) downloaded to /Users/kyllian/Library/Caches/ms-playwright/firefox-1475
    Downloading Webkit 18.4 (playwright build v2140) from https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2140/webkit-mac-15-arm64.zip
    65.7 MiB [====================] 100% 0.0s
    Webkit 18.4 (playwright build v2140) downloaded to /Users/kyllian/Library/Caches/ms-playwright/webkit-2140
    (web-ui) (base) kyllian@Air-de-Kyllian web-ui % cp .env.example .env
    (web-ui) (base) kyllian@Air-de-Kyllian web-ui % python webui.py --ip 127.0.0.1 --port 7788
    INFO [browser_use] BrowserUse logging setup complete with level info
    Traceback (most recent call last):
    File "/Users/kyllian/Desktop/Projet/browser-use/web-ui/webui.py", line 28, in
    from src.utils import utils
    File "/Users/kyllian/Desktop/Projet/browser-use/web-ui/src/utils/utils.py", line 10, in
    from langchain_google_genai import ChatGoogleGenerativeAI
    ModuleNotFoundError: No module named 'langchain_google_genai'
    (web-ui) (base) kyllian@Air-de-Kyllian web-ui %

@mimarumo25
Copy link

mimarumo25 commented Mar 18, 2025

I tried to install both locally and from Docker and I have the same problem.
2025-03-18 13:52:14
2025-03-18 13:52:14 INFO [browser_use] BrowserUse logging setup complete with level info
2025-03-18 13:52:14 2025-03-18 18:52:14,097 DEBG 'webui' stdout output:
2025-03-18 13:52:14 INFO [browser_use] BrowserUse logging setup complete with level info
2025-03-18 13:52:14
2025-03-18 13:52:14 2025-03-18 18:52:14,097 DEBG 'webui' stdout output:
2025-03-18 13:52:14 INFO [browser_use] BrowserUse logging setup complete with level info
2025-03-18 13:52:14
2025-03-18 13:52:14 Traceback (most recent call last):
2025-03-18 13:52:14 File "/app/webui.py", line 28, in
2025-03-18 13:52:14 from src.utils import utils
2025-03-18 13:52:14 File "/app/src/utils/utils.py", line 10, in
2025-03-18 13:52:14 from langchain_google_genai import ChatGoogleGenerativeAI
2025-03-18 13:52:14 ModuleNotFoundError: No module named 'langchain_google_genai'
2025-03-18 13:52:14 2025-03-18 18:52:14,960 DEBG 'webui' stderr output:
2025-03-18 13:52:14 Traceback (most recent call last):
2025-03-18 13:52:14 File "/app/webui.py", line 28, in
2025-03-18 13:52:14 from src.utils import utils
2025-03-18 13:52:14 File "/app/src/utils/utils.py", line 10, in
2025-03-18 13:52:14
2025-03-18 13:52:14 2025-03-18 18:52:14,960 DEBG 'webui' stderr output:
2025-03-18 13:52:14 Traceback (most recent call last):
2025-03-18 13:52:14 File "/app/webui.py", line 28, in
2025-03-18 13:52:14 from src.utils import utils
2025-03-18 13:52:14 File "/app/src/utils/utils.py", line 10, in
2025-03-18 13:52:14
2025-03-18 13:52:14 2025-03-18 18:52:14,961 DEBG 'webui' stderr output:
2025-03-18 13:52:14 from langchain_google_genai import ChatGoogleGenerativeAI
2025-03-18 13:52:14 ModuleNotFoundError: No module named 'langchain_google_genai'
2025-03-18 13:52:14
2025-03-18 13:52:14 2025-03-18 18:52:14,961 DEBG 'webui' stderr output:
2025-03-18 13:52:14 from langchain_google_genai import ChatGoogleGenerativeAI
2025-03-18 13:52:14 ModuleNotFoundError: No module named 'langchain_google_genai'

@orion-apps
Copy link

pip install langchain_google_genai

@mimarumo25
Copy link

(web-ui) PS D:\Browser Use\web-ui> python webui.py --ip 127.0.0.1 --port 7788
INFO [browser_use] BrowserUse logging setup complete with level info
Traceback (most recent call last):
File "D:\Browser Use\web-ui\webui.py", line 33, in
from src.controller.custom_controller import CustomController
File "D:\Browser Use\web-ui\src\controller\custom_controller.py", line 9, in
from main_content_extractor import MainContentExtractor
ModuleNotFoundError: No module named 'main_content_extractor'
(web-ui) PS D:\Miguel\Browser Use\web-ui>

@Ches-ctrl
Copy link

Same issue

@mimarumo25
Copy link

mimarumo25 commented Mar 18, 2025

After installing pip install langchain_google_genai File "D:\Browser Use\web-ui\webui.py", line 28, in
from src.utils import utils
File "D:\Browser Use\web-ui\src\utils\utils.py", line 10, in
from langchain_google_genai import ChatGoogleGenerativeAI
ModuleNotFoundError: No module named 'langchain_google_genai'
Has anyone found a solution to this problem according to the documentation?

@TheSenseiRyuu
Copy link

TheSenseiRyuu commented Mar 18, 2025

Yes the only way i found to install and use it properly was to show the repo from 2 months ago and install the version.
Folder called:web-ui-e43a54f63c40171462ba99804a5df9ef7308a192

@junkf8d
Copy link

junkf8d commented Mar 18, 2025

I successfully got it working by first modifying requirements.txt to use browser-use 0.1.37, running uv pip install -r requirements.txt, then changing it back to browser-use 0.1.40 and running uv pip install -r requirements.txt again.

Details are as follows:
browser-use/browser-use#994 (comment)

#417 (comment)

@orion-apps
Copy link

MainContentExtractor
ModuleNotFoundError: No module named 'main_content_extractor'

It's likely because you don't have MainContentExtractor installed. Try pip install MainContentExtractor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants