Skip to content

Fix textblob version check in Copilot PR NLP Analysis workflow#14119

Merged
pelikhan merged 2 commits intomainfrom
copilot/debug-nlp-analysis-failure
Feb 6, 2026
Merged

Fix textblob version check in Copilot PR NLP Analysis workflow#14119
pelikhan merged 2 commits intomainfrom
copilot/debug-nlp-analysis-failure

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

The NLP analysis workflow failed at library installation verification due to textblob lacking a __version__ attribute.

Changes

  • Updated version check to use importlib.metadata.version("textblob") instead of textblob.__version__
  • Recompiled workflow to generate updated lock file

Error Fixed

# Before (fails with AttributeError)
python3 -c "import textblob; print(f'TextBlob {textblob.__version__} installed')"

# After (uses proper metadata API)
python3 -c "from importlib.metadata import version; print(f'TextBlob {version(\"textblob\")} installed')"

Unlike most Python packages, textblob doesn't expose __version__ at module level. The importlib.metadata API is the standard approach for version inspection in such cases.

Original prompt

This section details on the original issue you should resolve

<issue_title>[agentics] Copilot PR Conversation NLP Analysis failed</issue_title>
<issue_description>### Workflow Failure

Workflow: Copilot PR Conversation NLP Analysis
Branch: main
Run URL: https://github.com/github/gh-aw/actions/runs/21746972575
Pull Request: #14096

Action Required

Debug this workflow failure using the agentic-workflows agent:

/agent agentic-workflows

When prompted, instruct the agent to debug this workflow failure.

Generated from Copilot PR Conversation NLP Analysis

  • expires on Feb 13, 2026, 10:27 AM UTC

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug workflow failure in Copilot PR Conversation NLP Analysis Fix textblob version check in Copilot PR NLP Analysis workflow Feb 6, 2026
Copilot AI requested a review from pelikhan February 6, 2026 12:57
@pelikhan pelikhan marked this pull request as ready for review February 6, 2026 13:05
Copilot AI review requested due to automatic review settings February 6, 2026 13:05
Copy link
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

This PR fixes a workflow failure in the Copilot PR NLP Analysis workflow caused by textblob lacking a __version__ attribute at module level. The fix updates the version check to use Python's standard importlib.metadata.version() API instead.

Changes:

  • Updated textblob version verification to use importlib.metadata.version("textblob") instead of textblob.__version__
  • Regenerated workflow lock file with updated frontmatter hash

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/copilot-pr-nlp-analysis.md Updated textblob version check to use importlib.metadata.version() API
.github/workflows/copilot-pr-nlp-analysis.lock.yml Regenerated lock file with updated frontmatter hash reflecting the source changes

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

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.

[agentics] Copilot PR Conversation NLP Analysis failed

2 participants