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.

Author arnaud.faucher
Recipients arnaud.faucher, benjamin.peterson, collinwinter
Date 2008-09-28.17:03:18
SpamBayes Score 9.419461e-09
Marked as misclassified No
Message-id <1222621400.85.0.0163856660979.issue3989@psf.upfronthosting.co.za>
In-reply-to
Content
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) ?
History
Date User Action Args
2008-09-28 17:03:21arnaud.fauchersetrecipients: + arnaud.faucher, collinwinter, benjamin.peterson
2008-09-28 17:03:20arnaud.fauchersetmessageid: <1222621400.85.0.0163856660979.issue3989@psf.upfronthosting.co.za>
2008-09-28 17:03:19arnaud.faucherlinkissue3989 messages
2008-09-28 17:03:18arnaud.fauchercreate