-
Notifications
You must be signed in to change notification settings - Fork 221
[Bug]: pip not in PATH in dstackai/efa image – causes exit status 127 #2728
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to reproduce
- Create task with the following configuration:
type: task
name: test-efa
image: dstackai/efa
commands:
- pip install torch
resources:
gpu: 1
- Run the task
Actual behaviour
The task fails immediately with the following error:
Run failed with error code CONTAINER_EXITED_WITH_ERROR.
Exit status: 127.
This indicates that the pip command is not found in the container’s PATH.
Expected behaviour
pipshould be available in the default PATH so that standard Python package installation commands work out of the box.
This was confirmed to be a PATH issue by adding the following to the task:
commands:
- export PATH=/opt/conda/envs/workflow/bin:$PATH
- pip install torch
This workaround succeeds, confirming the missing pip from PATH.
- Include
uvas the default Python package manager, consistent with other official dstack images.
dstack version
master branch at commit 1e16fe1
Server logs
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working