PyDev: Fatal error Python32\lib\io.py, line 60, in <module>

左心房为你撑大大i 提交于 2019-12-11 08:45:04

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/7111025/pydev-fatal-error-python32-lib-io-py-line-60-in-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!