PipedreamHQ / PipedreamHQ/pipedream

[BUG] Python openai-agents package (The directory '/home/sbx_user1051/.cache/pip' or its parent directory is not owned or is not writable by the current user)

Open
#16,538 1 comment 0 reactions 0 assignees View on GitHub
bug tracked internally triaged
Dominant language
JavaScript
Stars
11.7k
Forks
5.8k
Avg merge
3d 10h
Merged PRs (30d)
102

Description

**Describe the bug**
Not able to install openai-agents SDK when running a python code action. The Pipedream UI is not allowing to see and copy the entire error (extract below), but it might be the exact same thing as #6260 and #6283

`Command failed: python3 -m pip install --target=/tmp/__pdg__/dist/python -r requirements.txt --upgrade WARNING: The directory '/home/sbx_user1051/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. E...`

**To Reproduce**
- Create a Python Run Code Action
- Add these lines:
```
# pipedream add-package openai-agents
import agents
```
- Click Test

**Expected behavior**
Python Run Code action runs with no inconveniences.

**Screenshots**
![Image](https://github.com/user-attachments/assets/7c1043bc-6418-4d14-9a66-ac92abf03dd0)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.