-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TypeError: BrowserContext.get_state() got an unexpected keyword argument 'use_vision' #297
Comments
use browser-use==0.1.29 . i havenot updated latest BU yet |
Still same error |
Run this command and make sure it's the correct version of browser-use:
|
Name: browser-use |
Hm... the most recent working version is
|
C:\Users\Anike\AppData\Local\Programs\Python\Python313\Lib\site-packages\browser_use\utils.py This doesn't seem to be in the uv env. Did you not activate it before running? |
Tried still same |
Did you install the requirements after activating the virtual environment? Check if there is a new Also, is the error the same as before? If you activated it, the error should be different if you are still getting it. Try reinstalling the requirements again after you activated it:
Now try running the webui again. If you are still getting errors, share the terminal output. |
INFO [agent] 🚀 Starting task: go to google.com and type 'OpenAI' click search and give me the first url |
update code and try again |
To create a public link, set
share=True
inlaunch()
.INFO [main] 🛑 Stop requested - the agent will halt at the next safe point
INFO [agent] 🚀 Starting task: go to google.com and type 'OpenAI' click search and give me the first url
WARNING [src.agent.custom_agent] No history to create GIF from
Traceback (most recent call last):
File "C:\Users\Anike\web-ui\webui.py", line 401, in run_custom_agent
history = await agent.run(max_steps=max_steps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anike\web-ui\src\agent\custom_agent.py", line 330, in run
state = await self.browser_context.get_state(use_vision=self.use_vision)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anike\AppData\Local\Programs\Python\Python313\Lib\site-packages\browser_use\utils.py", line 19, in wrapper
result = func(*args, **kwargs)
TypeError: BrowserContext.get_state() got an unexpected keyword argument 'use_vision'
INFO [agent] 🚀 Starting task: go to google.com and type 'OpenAI' click search and give me the first url
WARNING [src.agent.custom_agent] No history to create GIF from
Traceback (most recent call last):
File "C:\Users\Anike\web-ui\webui.py", line 401, in run_custom_agent
history = await agent.run(max_steps=max_steps)
The text was updated successfully, but these errors were encountered: