Closed unclemusclez closed 4 months ago
File "/home/musclez/.cache/pypoetry/virtualenvs/opendevin-dnzq0gtc-py3.11/lib/python3.11/site-packages/browsergym/core/registration.py", line 24, in
entry_point=lambda *env_args, *env_kwargs: BrowserEnv(task_class, env_args, **env_kwargs), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: BrowserEnv.init() got an unexpected keyword argument 'start_url'
Looks like the issue has something to do with extra keyword argument -- do you mind sharing your config.toml
with API key removed?
it's there
What's the version of the container you used for docker run
? Or are you make build
from the main
?
i am using make build
from the main repository
i think i am seeing two issues in my logs: 1) i perhaps added too many variables for WORKSPACE_DIR/workspace_base, not sure if i need both, or just workspace_base. I was reading older documentation/Q&A trying to figure things out/messing things up. 2) some of my dependencies with pypoetry might be messed up
i'll try to rebuild from scratch
It looks like a bug in BrowserGym.
Looks like that argument needs to be task_kwargs={'start_url':'about:blank'},
once https://github.com/ServiceNow/BrowserGym/pull/11 is merged.
env = gym.make(
'browsergym/openended',
task_kwargs={'start_url':'about:blank'},
wait_for_user_message=False,
headless=True,
disable_env_checker=True,
)
i got the same error after pull the latest commits.
Looks like that argument needs to be
task_kwargs={'start_url':'about:blank'},
once ServiceNow/BrowserGym#11 is merged.env = gym.make( 'browsergym/openended', task_kwargs={'start_url':'about:blank'}, wait_for_user_message=False, headless=True, disable_env_checker=True, )
Running pip install ./BrowserGym
on your repo with the patch on /OpenDevin/opendevin/runtime/browser/browser_env.py
worked
For the plugin error
/bin/bash^M: bad interpreter:
^M is \r Change CLRF to LF line endings
Looks like that argument needs to be
task_kwargs={'start_url':'about:blank'},
once ServiceNow/BrowserGym#11 is merged.env = gym.make( 'browsergym/openended', task_kwargs={'start_url':'about:blank'}, wait_for_user_message=False, headless=True, disable_env_checker=True, )
That merge is not needed.
the start_url issue has been fixed now by pinning to an old version. @SmartManoj has the correct fix above though
Is there an existing issue for the same bug?
Describe the bug
Compiled from source:
Current Version
Installation and Configuration