This strongly seems like an issue where the authors of pylint/astroid did not explore installation on a non-*nix machine. It is tough to do so (speaking from experience) so I don't fault them, but the real solution is not just to use '2to3.py' because on *nix machines, that does not exist. On *nix machines it is installed as what is used in the script above. That said, the best solution seems to be a sort of "compatibility" layer upon installation where it looks to determine if it is on Windows and in that case uses '2to3.py' and otherwise uses '2to3'. If you submit a pull request to their repositories on BitBucket, I'm sure they would greatly appreciate it.


On Fri, Aug 9, 2013 at 7:03 AM, «JÚZ©ú <745189913@qq.com> wrote:
Hello,
I am a beginner to Pylint, My name is Hou Zhuoming. When I install the pylint 1.0.0 in python 3.3(OS:Windows7), there is a error happened.


And then I read the source code of pylint 1.0.0. I found something is wrong in setup.py model.


Line 138: call(['2to3','-wn',dest]): I think the problem is the system cannot find 2to3.
But I can find a script named '2to3.py' in my python 3.3. So I change Line 138 to:
call(['C:\\Python33\\Tools\\Scripts\\2to3.py', '-wn', dest], shell=sys.platform=='win32').
It works! I can install pylint 1.0.0 successfully after the change.
My setup.py in pylint 1.0.0:


I found the same problem in astroid-1.0.0 and logilab-common-0.60.0 too. I also can install these two packages with the same change.
I am not sure it is a bug. Maybe, something is wrong when I am installing the pylint 1.0.0. (No problem in Linux)
Another problem: when I successfully installed pylint 1.0.0, I want to run the pylint-gui.exe. I can see the GUI successfully. But when I want to test some python scripts, it works wrong.(The pylint.exe works normally)


All these problems happen in python 3.3(Operating system  is Windows 7).
I need your help.
Thank you.
------------------
School of Software,Sun Yat-sen University
Zhuoming Hou(«JÚZ©ú)
 

_______________________________________________
code-quality mailing list
code-quality@python.org
http://mail.python.org/mailman/listinfo/code-quality