Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2to3 dependency support was removed in python 3.13 breaking package functionality #124

Open
error-try-again opened this issue Jan 9, 2025 · 0 comments

Comments

@error-try-again
Copy link

Using pyannotate 1.2.0, Python 3.13.1 (main, Dec 4 2024, 08:54:14) [GCC 11.4.0] on linux

Code example:

from pyannotate_runtime import collect_types

collect_types.init_types_collection()

if __name__ == "__main__":
    collect_types.start()
    runner = Runner()
    asyncio.run(runner.run())
    collect_types.stop()
    collect_types.dump_stats("example-types.dump")

The error:

(venv) void@null » pyannotate --type-info example-types.dump --py3 -w main.py
Traceback (most recent call last):
  File "/home/void/my_project/venv/bin/pyannotate", line 5, in <module>
    from pyannotate_tools.annotations.__main__ import main
  File "/home/void/my_project/venv/lib/python3.13/site-packages/pyannotate_tools/annotations/__main__.py", line 9, in <module>
    from lib2to3.main import StdoutRefactoringTool
ModuleNotFoundError: No module named 'lib2to3'

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

No branches or pull requests

1 participant