python / python/importlib_metadata
NameError: name 'PathDistribution' is not defined
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 142
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Bug in importlib-metadata 8.7.0 where MetadataPathFinder.find_distributions() uses PathDistribution class before it's defined (line 967 uses it, line 982 defines it). Celery triggered this when loading backend extensions.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at MetadataPathFinder.find_distributions() around line 967 and inspect the later PathDistribution definition at line 982. Reproduce the import or distribution lookup that triggers the NameError, then verify that the Celery backend-extension loading path no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100