Skip to content

fix: avoid pip install panda-client permissions denied error#1

Merged
wdconinc merged 4 commits intomainfrom
pip-install-user-panda-client
Apr 17, 2026
Merged

fix: avoid pip install panda-client permissions denied error#1
wdconinc merged 4 commits intomainfrom
pip-install-user-panda-client

Conversation

@wdconinc
Copy link
Copy Markdown
Collaborator

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

This adds --user to pip install to avoid attempts to write to /usr/etc.

What is the urgency of this PR?

  • High
  • Medium
  • Low

What kind of change does this PR introduce?

  • Bug fix (issue: unbreaks pipelines)
  • New feature (issue #__)
  • Optimization (issue #__)
  • Updated documentation
  • other: __

Please check if any of the following apply

  • This PR introduces breaking changes. Please describe changes users need to make below.
  • This PR changes default behavior. Please describe changes below.
  • AI was used in preparing this PR. Please describe usage below.

Copilot AI review requested due to automatic review settings April 17, 2026 22:15
@wdconinc wdconinc enabled auto-merge (squash) April 17, 2026 22:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions CI workflow to install panda-client in user-space to prevent permission issues when pip attempts to write to system directories during pipeline runs.

Changes:

  • Add --user to the pip install panda-client step in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml Outdated
wdconinc and others added 3 commits April 17, 2026 17:38
Replace 'pip install --user panda-client' with a git clone from
PanDAWMS/panda-client and installation via 'python3 setup.py install
--prefix=$HOME/.local', as recommended by upstream. This avoids the
permission denied error caused by the custom install_data logic
attempting to write to /usr/etc.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
setup.py install --prefix=$HOME/.local places modules under
$HOME/.local/lib/pythonX.Y/site-packages/, which is not automatically
on sys.path in GitHub Actions. Export PYTHONPATH and PATH via
GITHUB_ENV/GITHUB_PATH so subsequent steps can import pandaclient and
find installed scripts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
On Debian/Ubuntu, distutils with --prefix appends an extra 'local/'
segment, so --prefix=$HOME/.local lands in $HOME/.local/local/lib/...
rather than $HOME/.local/lib/.... Use a clean prefix (/tmp/panda-install)
and discover the real site-packages directory via find, making PYTHONPATH
correct regardless of Python version or OS path conventions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wdconinc wdconinc merged commit 92f7456 into main Apr 17, 2026
1 check passed
@wdconinc wdconinc deleted the pip-install-user-panda-client branch April 17, 2026 23:04
@wdconinc wdconinc changed the title fix: pip install --user panda-client fix: avoid pip install panda-client permissions denied error Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants