更新了 Google App Engine,现在我的 python manage.py runserver 出现错误

发布于 2024-12-11 05:17:27 字数 3648 浏览 1 评论 0原文

昨天在更新 Google App Engine SDK 之前,我能够毫无问题地执行 python manage.py runserver,但是今天早上更新 SDK 后,我在尝试执行 时遇到了这些错误>python manage.py runserver 我不确定问题是什么。有什么想法吗?

WARNING  2011-10-19 09:18:16,284 dev_appserver.py:4648] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
Warning: You are using a Python runtime (2.6) that is more recent than the production runtime environment (2.5). Your application may use features that are not available in the production environment and may not work correctly when deployed to production.
INFO     2011-10-19 09:18:16,865 appengine_rpc.py:159] Server: appengine.google.com
INFO     2011-10-19 09:18:19,585 rdbms_sqlite.py:58] Connecting to SQLite database '' with file '/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/.gaedata/rdbms'
WARNING  2011-10-19 09:18:19,587 dev_appserver.py:4648] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
execute_manager(settings)
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/__init__.py", line 438, in execute_manager

  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/__init__.py", line 379, in execute

  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/djangoappengine/management/commands/runserver.py", line 79, in run_from_argv
super(Command, self).run_from_argv(argv)
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/base.py", line 191, in run_from_argv
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/base.py", line 220, in execute
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/django/core/management/commands/runserver.py", line 67, in handle
self.run(*args, **options)
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/djangoappengine/management/commands/runserver.py", line 154, in run
dev_appserver_main.main([self.progname] + args + [PROJECT_DIR])
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_main.py", line 651, in main
default_partition=default_partition)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 4842, in CreateServer
server = HTTPServerWithScheduler((serve_address, port), handler_class)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 4870, in __init__
request_handler_class)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 400, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTTPServer.py", line 108, in server_bind
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 411, in server_bind
  File "<string>", line 1, in bind
socket.error: [Errno 48] Address already in use
Exception AttributeError: "'NoneType' object has no attribute 'mkstemp'" in <bound method DatastoreFileStub.__del__ of <google.appengine.api.datastore_file_stub.DatastoreFileStub object at 0x106063190>> ignored

Yesterday before updating the Google App Engine SDK, I was able to do python manage.py runserver without any problems, but after updating the SDK this morning, I'm getting these errors when trying to do python manage.py runserver I'm not sure what the problem is. Any ideas?

WARNING  2011-10-19 09:18:16,284 dev_appserver.py:4648] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
Warning: You are using a Python runtime (2.6) that is more recent than the production runtime environment (2.5). Your application may use features that are not available in the production environment and may not work correctly when deployed to production.
INFO     2011-10-19 09:18:16,865 appengine_rpc.py:159] Server: appengine.google.com
INFO     2011-10-19 09:18:19,585 rdbms_sqlite.py:58] Connecting to SQLite database '' with file '/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/.gaedata/rdbms'
WARNING  2011-10-19 09:18:19,587 dev_appserver.py:4648] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
execute_manager(settings)
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/__init__.py", line 438, in execute_manager

  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/__init__.py", line 379, in execute

  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/djangoappengine/management/commands/runserver.py", line 79, in run_from_argv
super(Command, self).run_from_argv(argv)
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/base.py", line 191, in run_from_argv
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/django-blog/django/core/management/base.py", line 220, in execute
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/django/core/management/commands/runserver.py", line 67, in handle
self.run(*args, **options)
  File "/Users/bryce/Documents/Aptana Studio 3 Workspace/DennysBE/djangoappengine/management/commands/runserver.py", line 154, in run
dev_appserver_main.main([self.progname] + args + [PROJECT_DIR])
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_main.py", line 651, in main
default_partition=default_partition)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 4842, in CreateServer
server = HTTPServerWithScheduler((serve_address, port), handler_class)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 4870, in __init__
request_handler_class)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 400, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTTPServer.py", line 108, in server_bind
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 411, in server_bind
  File "<string>", line 1, in bind
socket.error: [Errno 48] Address already in use
Exception AttributeError: "'NoneType' object has no attribute 'mkstemp'" in <bound method DatastoreFileStub.__del__ of <google.appengine.api.datastore_file_stub.DatastoreFileStub object at 0x106063190>> ignored

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抚笙 2024-12-18 05:17:27

知道了。我所需要做的就是将端口号更改为不同的号码。我刚刚选择了8084:

python manage.py runserver 8084

Got it. All I needed to do was change the port number to a different number. I just chose 8084:

python manage.py runserver 8084
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文