From 70f20a4496b0010b60384539699f896a6558c842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Wed, 31 Jul 2024 13:54:59 +0530 Subject: [PATCH 1/2] Skip win32 for getuid --- opendevin/runtime/plugins/agent_skills/agentskills.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opendevin/runtime/plugins/agent_skills/agentskills.py b/opendevin/runtime/plugins/agent_skills/agentskills.py index b7244b744ab4..db45daef580c 100644 --- a/opendevin/runtime/plugins/agent_skills/agentskills.py +++ b/opendevin/runtime/plugins/agent_skills/agentskills.py @@ -21,6 +21,7 @@ import os import re import shutil +import sys import tempfile from inspect import signature from typing import Optional @@ -89,7 +90,8 @@ def wrapper(*args, **kwargs): print( f'DEBUGGING Environment variables: {json.dumps(dict(os.environ), indent=2)}' ) - print(f'DEBUGGING User ID: {os.getuid()}, Group ID: {os.getgid()}') + if sys.platform != 'win32': + print(f'DEBUGGING User ID: {os.getuid()}, Group ID: {os.getgid()}') out = subprocess.run(['pwd'], capture_output=True) old_pwd = out.stdout.decode('utf-8').strip() From f072f44483e1f02a012b6c1cf9880ca5e2209796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Thu, 1 Aug 2024 12:30:28 +0530 Subject: [PATCH 2/2] install build package --- opendevin/runtime/utils/runtime_build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opendevin/runtime/utils/runtime_build.py b/opendevin/runtime/utils/runtime_build.py index acb4ac6d02fa..a0fd6185315b 100644 --- a/opendevin/runtime/utils/runtime_build.py +++ b/opendevin/runtime/utils/runtime_build.py @@ -28,6 +28,8 @@ def _create_project_source_dist(): project_root = os.path.dirname(os.path.dirname(os.path.abspath(opendevin.__file__))) logger.info(f'Using project root: {project_root}') + # install build package + subprocess.run(['python', '-m', 'pip', 'install', 'build']) # run "python -m build -s" on project_root result = subprocess.run(['python', '-m', 'build', '-s', project_root]) if result.returncode != 0: