fix: reinstall runpod after Comfy requirements so handler can start
Browse files- bootstrap-h3.sh +3 -0
bootstrap-h3.sh
CHANGED
|
@@ -31,6 +31,9 @@ if [[ ! -d /opt/ComfyUI ]]; then
|
|
| 31 |
git checkout "$COMFY_PIN" || fail "checkout Comfy pin"
|
| 32 |
pip install --no-cache-dir --break-system-packages -r requirements.txt || fail "pip Comfy reqs"
|
| 33 |
fi
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
export WORKSPACE_DIR="${WORKSPACE_DIR:-/opt/hypium/worker}"
|
| 36 |
export COMFYUI_PATH="${COMFYUI_PATH:-/opt/ComfyUI}"
|
|
|
|
| 31 |
git checkout "$COMFY_PIN" || fail "checkout Comfy pin"
|
| 32 |
pip install --no-cache-dir --break-system-packages -r requirements.txt || fail "pip Comfy reqs"
|
| 33 |
fi
|
| 34 |
+
# Comfy requirements can shadow/remove runpod. Reinstall after that pip.
|
| 35 |
+
pip install --no-cache-dir --break-system-packages --ignore-installed cryptography runpod==1.10.1 || fail "pip runpod after comfy"
|
| 36 |
+
python3 -c "import runpod" || fail "runpod import after comfy"
|
| 37 |
|
| 38 |
export WORKSPACE_DIR="${WORKSPACE_DIR:-/opt/hypium/worker}"
|
| 39 |
export COMFYUI_PATH="${COMFYUI_PATH:-/opt/ComfyUI}"
|