gpt4 book ai didi

python - 本地开发服务器的谷歌应用引擎没有终端输出?

转载 作者:行者123 更新时间:2023-11-28 23:01:32 25 4
gpt4 key购买 nike

我一直在使用 google app engine 通过 python 2.7、ubuntu 12.04 和 webapp2 框架进行网络应用程序开发。

由于某些奇怪的原因,当我在本地开发服务器上运行应用程序时,我无法再像以前那样在终端上查看我的 HTTP 响应或查看错误。我不知道它是怎么变成这样的。

另外,当使用我的终端运行新的 dev_server.py 命令时,如下所示,

ahmad@ubuntu:~/GAE$ python google_appengine/dev_appserver.py wiki

我收到一条错误消息,提示正在使用套接字。我记得当我运行一个应用程序时,我必须单击 ctrl+c 来终止它并重新运行另一个应用程序。用过...

这是在本地开发服务器上运行 diff 应用程序的确切错误,

ahmad@ubuntu:~/GAE$ python google_appengine/dev_appserver.py wiki
WARNING 2012-06-09 17:04:25,981 rdbms_mysqldb.py:74] The rdbms API is not available because the MySQLdb library could not be loaded.
INFO 2012-06-09 17:04:26,022 appengine_rpc.py:160] Server: appengine.google.com
INFO 2012-06-09 17:04:26,024 appcfg.py:582] Checking for updates to the SDK.
INFO 2012-06-09 17:04:26,221 appcfg.py:600] The SDK is up to date.
WARNING 2012-06-09 17:04:26,221 datastore_file_stub.py:518] Could not read datastore data from /tmp/dev_appserver.datastore
Traceback (most recent call last):
File "google_appengine/dev_appserver.py", line 125, in <module>
run_file(__file__, globals())
File "google_appengine/dev_appserver.py", line 121, in run_file
execfile(script_path, globals_)
File "/home/ahmad/GAE/google_appengine/google/appengine/tools/dev_appserver_main.py", line 690, in <module>
sys.exit(main(sys.argv))
File "/home/ahmad/GAE/google_appengine/google/appengine/tools/dev_appserver_main.py", line 653, in main
persist_logs=persist_logs)
File "/home/ahmad/GAE/google_appengine/google/appengine/tools/dev_appserver.py", line 3595, in CreateServer
server = HTTPServerWithScheduler((serve_address, port), handler_class)
File "/home/ahmad/GAE/google_appengine/google/appengine/tools/dev_appserver.py", line 3623, in __init__
request_handler_class)
File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
self.server_bind()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
INFO 2012-06-09 17:04:26,322 datastore_stub_util.py:2410] Applying all pending transactions and saving the datastore

提前感谢您的帮助

最佳答案

“地址已在使用”看起来端口已被其他进程使用。

关于python - 本地开发服务器的谷歌应用引擎没有终端输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10962922/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com