PyDev:致命的错误Python32\lib\io.py,第60行在< module> [英] PyDev: Fatal error Python32\lib\io.py, line 60, in <module>

查看:332
本文介绍了PyDev:致命的错误Python32\lib\io.py,第60行在< module>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PyDev工作,很突然,我不能从Eclipse的PyDev(版本2.1.0)中运行我的python程序。



我运行的任何python程序通过运行方式> Python运行失败

 致命的Python错误:Py_Initialize:无法初始化sys标准流
追溯(最近的最后一次调用):
文件C:\Python32\lib\\ \\ io.py,第60行,在< module>

此应用程序请求运行时以不寻常的方式终止它。
请联系申请支持小组了解更多信息。




  • 我仍然可以在命令行中运行我的程序,只有Eclipse *只有一个版本的Python(3.2)

  • 自从上次工作以来,我没有改变我的python文件。它们被编码为UTF-8。

  • 自从上次工作以来,我还没有升级Eclipse和PyDev

  • Python安装在 c:\python32 (在环境变量 PYTHONPATH 中定义)

  • 我的XP系统有今天更新了KB2536276和



任何想法?

解决方案

我终于找到了问题来自哪里:我有一个名为 stat.py 的文件,这显然是与 Lib / stat.py



不幸的是,错误信息非常模糊。
我只是不明白为什么pyDev行为不同于python.exe


I work in PyDev and quite suddenly, I cannot run my python programs from within Eclipse's PyDev (version 2.1.0) anymore.

Any python program I have ran through Run As > Python Run fails wioth

Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File "C:\Python32\lib\io.py", line 60, in <module>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

  • I can still run my program in command Line, only Eclipse * I have only one version of Python (3.2)
  • I haven't changed my python files since last time they worked. They are encoded UTF-8.
  • I haven't upgraded Eclipse nor PyDev since last time they worked
  • Python is installed in c:\python32 (defined in the environment variable PYTHONPATH)
  • My XP system has been updated today for KB2536276 and

Any idea?

解决方案

I have finally found out where the problem came from: I had a file called stat.py and this is apparently creating a conflict with Lib/stat.py

Unfortunately the error message was very obscure. And I just don't understand why pyDev behaves differently than python.exe

这篇关于PyDev:致命的错误Python32\lib\io.py,第60行在&lt; module&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆