本文介绍了EOFError:EOF读取对象的预期位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Traceback(最近一次调用的最后一次):
文件/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,第240行,处理
handler = _config_handle.add_wsgi_middleware(self._LoadHandler ())
文件/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,行299,位于_LoadHandler
处理程序,路径, err = LoadObject(self._handler)
在LoadObject $ b $中的第96行/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py文件b __import __(cumulative_path)
EOFError:EOF读取对象预期的位置
不知道错误在我的应用程序或GAE中。任何人看到这个?
解决方案
当3个或更多Python进程读取/写入相同的pyc文件时,在Python 3.3中修复:
Recently there have been strange errors on GAE, like this one:
Traceback (most recent call last):
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject
__import__(cumulative_path)
EOFError: EOF read where object expected
Not sure if the fault is in my app or on GAE. Anyone else seeing this?
解决方案
Most likely a race condition when 3 or more Python processes read/write the same pyc file. Fixed in Python 3.3: http://bugs.python.org/issue13146
这篇关于EOFError:EOF读取对象的预期位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!