arnaud.faucher <[EMAIL PROTECTED]> added the comment:

On a fresh win32 installation (using the 3.0rc1 MSI), the C:\Python30
\Tools\Scripts\2to3.py file contents is as follows:

------------------------------------------
#!/usr/bin/env python
from lib2to3 import refactor
import sys

sys.exit(refactor.main())
------------------------------------------

This version throws an error as follows:

------------------------------------------
C:\Python30\Tools\Scripts>C:\Python30\python.exe 2to3.py
Traceback (most recent call last):
  File "2to3.py", line 5, in <module>
    sys.exit(refactor.main())
AttributeError: 'module' object has no attribute 'main'
------------------------------------------


It seems that the '.py' extendion of the 2to3 script was removed some 
time ago.

Perhaps the MSI build process uses an old version of '2to3.py' and not 
the newer version of '2to3' (without the '.py' extension) ?

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3989>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to