web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

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

Open faithfulojebiyi opened this issue 9 months ago • 12 comments

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

faithfulojebiyi avatar Mar 18 '25 14:03 faithfulojebiyi

what's the problem with uv installation?

warmshao avatar Mar 18 '25 15:03 warmshao

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 %

TheSenseiRyuu avatar Mar 18 '25 18:03 TheSenseiRyuu

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'

mimarumo25 avatar Mar 18 '25 19:03 mimarumo25

pip install langchain_google_genai

orion-apps avatar Mar 18 '25 20:03 orion-apps

(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>

mimarumo25 avatar Mar 18 '25 20:03 mimarumo25

Same issue

Ches-ctrl avatar Mar 18 '25 20:03 Ches-ctrl

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?

mimarumo25 avatar Mar 18 '25 20:03 mimarumo25

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

TheSenseiRyuu avatar Mar 18 '25 22:03 TheSenseiRyuu

~~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:~~ ~~https://github.com/browser-use/browser-use/issues/994#issuecomment-2734107599~~

https://github.com/browser-use/web-ui/issues/417#issuecomment-2734927400

junkf8d avatar Mar 18 '25 23:03 junkf8d

MainContentExtractor ModuleNotFoundError: No module named 'main_content_extractor'

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

orion-apps avatar Mar 19 '25 00:03 orion-apps

Check if you have all prerequisites installed. And, also, i recommend that to fix the problem ASAP, you can always go to thinking models and ask them for help. go to [aistudio.google.com] and use GEMINI 2.5 PRO

HunainAdnan avatar Apr 10 '25 06:04 HunainAdnan

Hi @faithfulojebiyi,

Thank you for bringing this issue to our attention. It seems that the installation process is encountering some module-related errors, specifically with langchain_google_genai and main_content_extractor. These issues have been reported by other users as well.

Here are a few steps you can try to resolve these issues:

  1. For langchain_google_genai Module:

    • Ensure that you have installed the module using the command:
      pip install langchain_google_genai
      
    • If the issue persists, you might want to check if the module is correctly listed in your requirements.txt file and reinstall the dependencies.
  2. For main_content_extractor Module:

    • This module might not be available in the public repositories. You can try checking the project's documentation or any recent updates in the repository for guidance on how to handle this dependency.
  3. General Troubleshooting:

    • Make sure all prerequisites are installed as per the installation guide.
    • Consider using a previous stable version of the repository if the current main branch is causing issues, as suggested by some users.

If these steps do not resolve the issue, please provide more details about the errors you are encountering, and we can further investigate.

Best regards, The Browser Use Web UI Team

warmshao avatar Apr 13 '25 09:04 warmshao