Fix textblob version check in Copilot PR NLP Analysis workflow#14119
Merged
Fix textblob version check in Copilot PR NLP Analysis workflow#14119
Conversation
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
pelikhan
approved these changes
Feb 6, 2026
Contributor
There was a problem hiding this comment.
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 oftextblob.__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.
This was referenced Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The NLP analysis workflow failed at library installation verification due to
textbloblacking a__version__attribute.Changes
importlib.metadata.version("textblob")instead oftextblob.__version__Error Fixed
Unlike most Python packages, textblob doesn't expose
__version__at module level. Theimportlib.metadataAPI is the standard approach for version inspection in such cases.Original prompt
💡 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.