Google Apps Engine 在我的 CentOS 中运行,没有进行任何更改,但从昨天开始突然停止工作。然后我跟着谷歌应用引擎的补丁,但它仍然没有启动。如何解决?
[root@ip-10-59-143-73 tmp]# uname -a
Linux ip-10-59-143-73 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
根据补丁:
第 56/57 行已更改,与补丁一样,但仍然存在问题:
55 py_file = __file__.replace('.pyc', '.py')
56 #dir_paths = [os.path.abspath(os.path.dirname(os.path.realpath(py_file))),
57 # os.path.abspath(os.path.dirname(py_file))]
58 uncompiled_file = __file__.rstrip("c") if __file__.endswith("pyc") else __file__
59 dir_paths = [os.path.abspath(os.path.dirname(os.path.realpath(uncompiled_file))),
60 os.path.abspath(os.path.dirname(uncompiled_file))]
61 for dir_path in dir_paths:
62 sibling_path = os.path.join(dir_path, sibling)
63 if os.path.exists(sibling_path):
补丁没有帮助:
[root@ip-10-59-143-73 tmp]# Traceback (most recent call last):
File "/var/tmp/google_appengine/dev_appserver.py", line 76, in <module>
_DIR_PATH = _get_dir_path(os.path.join('lib', 'ipaddr'))
File "/var/tmp/google_appengine/dev_appserver.py", line 66, in _get_dir_path
'file and %s.' % sibling)
ValueError: Could not determine directory that contains both, this file and lib/ipaddr.
编辑:问题