From b030594646c91c6eaad3c24558558ef85a779974 Mon Sep 17 00:00:00 2001 From: Neeraj Panwar <49247372+npneeraj@users.noreply.github.com> Date: Thu, 8 May 2025 23:37:52 +0530 Subject: [PATCH] Fixing bug #8214 -ImportError During pip install --upgrade pip on Github Actions (#8229) --- .github/workflows/openhands-resolver.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index f34e49bc6d..917e1b3d5b 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -92,6 +92,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.12" + - name: Upgrade pip + run: | + python -m pip install --upgrade pip - name: Get latest versions and create requirements.txt run: | @@ -229,11 +232,11 @@ jobs: // Perform package installation if (isExperimentalLabel || isIssueCommentExperimental || isReviewCommentExperimental) { console.log("Installing experimental OpenHands..."); - await exec.exec("python -m pip install --upgrade pip"); + await exec.exec("pip install git+https://github.com/all-hands-ai/openhands.git"); } else { console.log("Installing from requirements.txt..."); - await exec.exec("python -m pip install --upgrade pip"); + await exec.exec("pip install -r /tmp/requirements.txt"); }