Something about Pylint
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(侯焯明) Email:745189913@qq.com
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, 侯焯明 <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(侯焯明) Email:745189913@qq.com
_______________________________________________ code-quality mailing list code-quality@python.org http://mail.python.org/mailman/listinfo/code-quality
On 09 août 08:30, Ian Cordasco wrote:
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.
Indeed. We're definitly Linux users at Logilab so testing with Windows platform is not our daily activity. We're neither daily py3k users so that doesn't help... So you're right that any help on the windows and py3k fronts are greatly appreciated. Anyway the setup.py in its current form has already been "fixed" by a Windows user, but not enough apparently ;). So I'm fine with the patch started provided it's modified to take your remark into account and that it's tested against other python version (eg 2.7?) under windows. -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org
Thanks for your reply. I will try my best to help to improve pylint. ------------------ School of Software,Sun Yat-sen University Zhuoming Hou(侯焯明) Phone:+8613427532687 (612687) Email:745189913@qq.com ------------------ 原始邮件 ------------------ 发件人: "Sylvain Thénault"; 发送时间: 2013年8月27日(星期二) 晚上10:20 收件人: "Ian Cordasco"; 抄送: "侯焯明"<745189913@qq.com>; "code-quality"; 主题: Re: [code-quality] Something about Pylint On 09 août 08:30, Ian Cordasco wrote:
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.
Indeed. We're definitly Linux users at Logilab so testing with Windows platform is not our daily activity. We're neither daily py3k users so that doesn't help... So you're right that any help on the windows and py3k fronts are greatly appreciated. Anyway the setup.py in its current form has already been "fixed" by a Windows user, but not enough apparently ;). So I'm fine with the patch started provided it's modified to take your remark into account and that it's tested against other python version (eg 2.7?) under windows. -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org .
On 09 août 20:03, 侯焯明 wrote:
Hello,
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. 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)
See my answer to Ian on this topic. The best way to move on this is probably to create an issue on bitbucket and ideally to submit a pull request there.
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)
Have you tried pylint-gui using another version of Python? -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org
Yes. I have tried pyint-gui in python2.7 on widows 7. But it has the same problem. ------------------ School of Software,Sun Yat-sen University Zhuoming Hou(侯焯明) Phone:+8613427532687 (612687) Email:745189913@qq.com ------------------ 原始邮件 ------------------ 发件人: "Sylvain Thénault"; 发送时间: 2013年8月27日(星期二) 晚上10:22 收件人: "侯焯明"<745189913@qq.com>; 抄送: "code-quality"; 主题: Re: [code-quality] Something about Pylint On 09 août 20:03, 侯焯明 wrote:
Hello,
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. 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)
See my answer to Ian on this topic. The best way to move on this is probably to create an issue on bitbucket and ideally to submit a pull request there.
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)
Have you tried pylint-gui using another version of Python? -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org .
On 09 août 20:03, 侯焯明 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.
Follow up on https://bitbucket.org/logilab/pylint/issue/51/building-pylint-windows-instal... -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org
participants (3)
-
Ian Cordasco
-
Sylvain Thénault
-
侯焯明