App Engine开发服务器:错误的运行时进程端口['']

时间:2013-06-13 13:57:36

标签: python google-app-engine devserver

运行本地开发服务器时出现以下错误消息:

bad runtime process port ['']

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 565, in <module>
    main()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 547, in main
    known_paths = addusersitepackages(known_paths)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 242, in getuserbase
    from sysconfig import get_config_var
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 104, in <module>
    _PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 99, in _safe_realpath
    return realpath(path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 366, in realpath
    if islink(component):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 136, in islink
    return stat.S_ISLNK(st.st_mode)
AttributeError: 'module' object has no attribute 'S_ISLNK'

我试图恢复几天并在一个众所周知的工作状态下运行项目,我得到了同样的错误。上传到谷歌没问题。其他项目在当地工作。我使用的是1.8.1 SDK。

2 个答案:

答案 0 :(得分:3)

我在当地遇到过类似的问题。我解决了删除所有文件.pyc和重新加载页面的问题。

答案 1 :(得分:0)

好的,发现了错误。我应该更清楚地阅读错误消息。它声明模块没有属性。那就是名字冲突。我有一个名为stat的文件。不知怎的,即使我还原了该项目,文件仍然存在,不知道为什么。

刚重命名该文件,现在一切正常。