This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: lib2to3\main.py will not run
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.0
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: collinwinter Nosy List: benjamin.peterson, collinwinter, rupole
Priority: normal Keywords:

Created on 2008-09-19 02:04 by rupole, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg73412 - (view) Author: Roger Upole (rupole) Date: 2008-09-19 02:04
On first try:

  File "H:\Python-3.0rc1\Lib\lib2to3\main.py", line 10, in <module>
    from . import refactor
ValueError: Attempted relative import in non-package

And after changing that line to
from lib2to3 import refactor
it still dies with

  File "H:\Python-3.0rc1\Lib\lib2to3\main.py", line 86, in <module>
    sys.exit(main())
TypeError: main() takes at least 1 positional argument (0 given)
msg73418 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-19 02:47
lib2to3/main.py is not an entry point. You should use the top level 2to3
script.
History
Date User Action Args
2022-04-11 14:56:39adminsetgithub: 48156
2008-09-19 02:47:54benjamin.petersonsetstatus: open -> closed
nosy: + benjamin.peterson
resolution: not a bug
messages: + msg73418
2008-09-19 02:04:46rupolecreate