Message73977
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) ? |
|
Date |
User |
Action |
Args |
2008-09-28 17:03:21 | arnaud.faucher | set | recipients:
+ arnaud.faucher, collinwinter, benjamin.peterson |
2008-09-28 17:03:20 | arnaud.faucher | set | messageid: <1222621400.85.0.0163856660979.issue3989@psf.upfronthosting.co.za> |
2008-09-28 17:03:19 | arnaud.faucher | link | issue3989 messages |
2008-09-28 17:03:18 | arnaud.faucher | create | |
|