NameError: name 'PathDistribution' is not defined
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
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.
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.
- Dominant language
- Python
- Stars
- 142
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
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.
More from python/importlib_metadata
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
python/importlib_metadata#535 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
python/importlib_metadata#528 · 4 comments ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
python/importlib_metadata#526 · 6 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
python/importlib_metadata#540 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
python/importlib_metadata#534 · 1 comment ·
All issues in python/importlib_metadata
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100