Compare commits

...

3 Commits

Author SHA1 Message Date
Engel Nyst
07c376de93 Merge branch 'main' into enyst/simple-local 2025-04-23 20:50:23 +02:00
Engel Nyst
932589e4c4 remove browser start/close 2025-04-22 23:24:14 +02:00
Engel Nyst
9be1e9e9f2 rename var 2025-04-22 23:20:06 +02:00

View File

@@ -41,15 +41,15 @@ from openhands.utils.async_utils import call_sync_from_async
from openhands.utils.tenacity_stop import stop_if_should_exit
def check_dependencies(code_repo_path: str, poetry_venvs_path: str):
def check_dependencies(code_repo_path: str, interpreter_root_path: str):
ERROR_MESSAGE = 'Please follow the instructions in https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md to install OpenHands.'
if not os.path.exists(code_repo_path):
raise ValueError(
f'Code repo path {code_repo_path} does not exist. ' + ERROR_MESSAGE
)
if not os.path.exists(poetry_venvs_path):
if not os.path.exists(interpreter_root_path):
raise ValueError(
f'Poetry venvs path {poetry_venvs_path} does not exist. ' + ERROR_MESSAGE
f'Interpreter path {interpreter_root_path} does not exist. ' + ERROR_MESSAGE
)
# Check jupyter is installed
logger.debug('Checking dependencies: Jupyter')
@@ -76,13 +76,6 @@ def check_dependencies(code_repo_path: str, poetry_venvs_path: str):
if 'test' not in pane_output:
raise ValueError('libtmux is not properly installed. ' + ERROR_MESSAGE)
# Check browser works
logger.debug('Checking dependencies: browser')
from openhands.runtime.browser.browser_env import BrowserEnv
browser = BrowserEnv()
browser.close()
class LocalRuntime(ActionExecutionClient):
"""This runtime will run the action_execution_server directly on the local machine.