Python中文
首页
教程
问答
标签
搜索
登录
注册
应用程序不会在GAE上运行-“无法绑定到本地主机:0”
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我最近把Google App Engine升级到了1.7.7。从那以后就不能在本地运行任何应用了。这包括更新前运行的应用程序和我创建的应用程序。我还没有遇到任何其他关于“无法绑定到localhost:0”这一特定问题的引用,因此,如果能深入了解如何消除这一障碍,我将不胜感激。</p> <p>我今天添加了一个新的“Hello World”应用程序的日志。在OSX10.6.8上通过ActivePython使用Python2.7。</p> <pre><code>*** Running dev_appserver with the following flags: --skip_sdk_update_check=yes --port=12084 --admin_port=8007 Python command: /usr/local/bin/pythonw INFO 2013-04-13 06:37:31,627 devappserver2.py:498] Skipping SDK update check. WARNING 2013-04-13 06:37:31,691 api_server.py:328] Could not initialize images API; you are likely missing the Python "PIL" module. WARNING 2013-04-13 06:37:31,692 simple_search_stub.py:977] Could not read search indexes from /var/folders/ag/ag25hkLMFEG1p0pLBBX5Mk+++TI/-Tmp-/appengine.binderror.b/search_indexes Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/dev_appserver.py", line 193, in <module> _run_file(__file__, globals()) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/dev_appserver.py", line 189, in _run_file execfile(script_path, globals_) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 662, in <module> main() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 655, in main dev_server.start(options) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 626, in start apis.start() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/api_server.py", line 151, in start super(APIServer, self).start() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/wsgi_server.py", line 296, in start raise BindError('Unable to bind %s:%s' % self.bind_addr) google.appengine.tools.devappserver2.wsgi_server.BindError: Unable to bind localhost:0 </code></pre> <p>更新:我可以通过GAE启动程序部署“Hello World”应用程序,没有任何问题。我运行命令<code>errinfo -c -n GoogleAppEngineLauncher.app</code>,它使用包含的<code>dtrace</code>,然后尝试运行三个应用程序,然后关闭它们。这是输出结果[有点超出我的能力]:</p> <pre><code> EXEC SYSCALL ERR COUNT DESC GoogleAppEngine madvise 12 1 Cannot allocate memory GoogleAppEngine __disable_threadsignal 0 2 GoogleAppEngine access 0 3 GoogleAppEngine bsdthread_register 22 3 Invalid argument GoogleAppEngine chdir 0 3 GoogleAppEngine close_nocancel 0 3 GoogleAppEngine fcntl_nocancel 0 3 GoogleAppEngine fork 0 3 GoogleAppEngine getdtablesize 0 3 GoogleAppEngine getpid 0 3 GoogleAppEngine open_nocancel 0 3 GoogleAppEngine setsid 0 3 GoogleAppEngine sigprocmask 0 3 GoogleAppEngine stat64 0 3 GoogleAppEngine wait4 0 3 GoogleAppEngine workq_open 0 3 GoogleAppEngine write 0 3 GoogleAppEngine lstat64 0 4 GoogleAppEngine pipe 0 6 GoogleAppEngine thread_selfid 0 6 GoogleAppEngine gettimeofday 0 7 GoogleAppEngine dup2 0 9 GoogleAppEngine madvise 0 17 GoogleAppEngine munmap 0 31 GoogleAppEngine mmap 0 33 GoogleAppEngine sigaction 0 87 GoogleAppEngine getattrlist 0 102 GoogleAppEngine fstat64 0 118 GoogleAppEngine open 0 118 GoogleAppEngine geteuid 0 208 GoogleAppEngine dup 0 10418 GoogleAppEngine read 0 10532 GoogleAppEngine close 0 10584 GoogleAppEngine workq_kernreturn 0 20752 GoogleAppEngine close 9 21459 Bad file descriptor GoogleAppEngine kevent 0 72543 </code></pre> <p>更新2,8月16日:我安装了最新版本的GAE启动程序[1.8.3],现在一切正常。</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>在另一个端口中测试它,添加--启动服务器时的端口号。</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在Python中简化列表处理?
8 回答
如何在Python中简化多个条件
6 回答
如何在python中简化嵌套列表的字典?
2 回答
如何在python中简化数组
6 回答
如何在python中简化此数据库调用
6 回答
如何在Python中简化这些语句
1 回答
如何在python中简化重复列表的理解?
3 回答
如何在Python中简单地从JSON API捕获空列表?
6 回答
如何在python中简单地使用for
1 回答
如何在Python中简单地导入文件夹?
5 回答
如何在Python中简单地将字符串中的分号对齐?
10 回答
如何在Python中简单地输入隐藏字
10 回答
如何在Python中简洁地级联多个regex语句
9 回答
如何在python中管理“\”,同时将psv加载到postgresq
9 回答
如何在Python中管理/托管AWS SQS队列消费者?
7 回答
如何在Python中管理diy etl管道中的范围
3 回答
如何在python中管理eventhandler递归?
3 回答
如何在Python中管理Google API错误
7 回答
如何在Python中管理全局变量
9 回答
如何在Python中管理内存
5 回答