pytest-dev / pytest-dev/unittest2pytest
ModuleNotFoundError: No module named 'lib2to3'
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 141
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Latest unittest2pytest can't run on Python 3.12 due to missing lib2to3 dep:
$ unittest2pytest
Traceback (most recent call last):
File "/home/giampaolo/.local/bin/unittest2pytest", line 5, in <module>
from unittest2pytest.__main__ import main
File "/home/giampaolo/.local/lib/python3.12/site-packages/unittest2pytest/__main__.py", line 25, in <module>
import lib2to3.main
ModuleNotFoundError: No module named 'lib2to3'
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 unittest2pytest/main.py and reproduce the unittest2pytest command under Python 3.12. Investigate the reported lib2to3.main import and verify that the command can run and rewrite unittest test cases successfully without the missing module.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100