我安装了python 2.7,直到今天工作正常。突然它关闭了一个应用程序错误,它无法捕获,现在每次运行它时抛出下面提到的错误。
为了简要介绍RAM memmory达到95%,这可能导致初始python崩溃
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\lib\site-packages\scrapy-0.16.4-py2.7.egg\scrapy\cmdline.py"
, line 7, in <module>
from scrapy.crawler import CrawlerProcess
File "C:\Python27\lib\site-packages\scrapy-0.16.4-py2.7.egg\scrapy\crawler.py"
, line 3, in <module>
from twisted.internet import reactor, defer
File "C:\Python27\lib\site-packages\twisted\internet\reactor.py", line 38, in
<module>
from twisted.internet import default
File "C:\Python27\lib\site-packages\twisted\internet\default.py", line 56, in
<module>
install = _getInstallFunction(platform)
File "C:\Python27\lib\site-packages\twisted\internet\default.py", line 52, in
_getInstallFunction
from twisted.internet.selectreactor import install
File "C:\Python27\lib\site-packages\twisted\internet\selectreactor.py", line 1
8, in <module>
from twisted.internet import posixbase
File "C:\Python27\lib\site-packages\twisted\internet\posixbase.py", line 24, i
n <module>
from twisted.internet import error, udp, tcp
File "C:\Python27\lib\site-packages\twisted\internet\tcp.py", line 73, in <mod
ule>
from twisted.python.win32 import formatError as strerror
ImportError: cannot import name formatError
答案 0 :(得分:0)
扭曲模块因崩溃而损坏。重新安装模块并重新运行。
答案 1 :(得分:-1)
似乎有些第三方软件包是有问题的。尝试重新安装它们或完全卸载它们。如果你正在使用扭曲的尝试上升到python3,它有很大的支持,并希望最新的安装修复腐败问题。