Skip to content

fix: resolve Daily News workflow failure due to PEP 668 pip install restriction#24241

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/aw-daily-news-failure-fix
Closed

fix: resolve Daily News workflow failure due to PEP 668 pip install restriction#24241
Copilot wants to merge 1 commit intomainfrom
copilot/aw-daily-news-failure-fix

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

The Daily News workflow failed at the "Install Python scientific libraries" step because pip install --user is blocked on Python 3.12 by PEP 668 (externally-managed-environment error), causing all subsequent steps — including the Copilot agent execution — to be skipped.

Changes

  • shared/python-dataviz.md, shared/python-nlp.md, shared/trending-charts-simple.md: Replaced pip install --user with a virtual environment approach
# Before (fails on Python 3.12 with PEP 668)
pip install --user --quiet numpy pandas matplotlib seaborn scipy

# After
if [ ! -d /tmp/gh-aw/venv ]; then
  python3 -m venv /tmp/gh-aw/venv
fi
echo "/tmp/gh-aw/venv/bin" >> "$GITHUB_PATH"
/tmp/gh-aw/venv/bin/pip install --quiet numpy pandas matplotlib seaborn scipy
  • All 21 affected .lock.yml files recompiled to reflect the updated shared imports.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0 --jq .object.sha (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Apr 3, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix daily news workflow failure fix: resolve Daily News workflow failure due to PEP 668 pip install restriction Apr 3, 2026
Copilot AI requested a review from pelikhan April 3, 2026 05:21
@pelikhan pelikhan closed this Apr 3, 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.

[aw] Daily News failed

2 participants