gpt4 book ai didi

python - AppEngine dev_appserver.py 中止且没有错误消息

转载 作者:太空宇宙 更新时间:2023-11-04 09:21:01 24 4
gpt4 key购买 nike

我有一个在 AppEngine 上运行良好的应用程序。但是,当我尝试使用 dev_appserver.py 在本地运行它时,它会在 ~1 秒内中止:

    ~/ dev_appserver.py --debug_imports myapp
/opt/local/share/google_appengine/google/appengine/api/datastore_file_stub.py:40: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
/opt/local/share/google_appengine/google/appengine/api/memcache/__init__.py:31: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha

我在 OS X 10.6.3、Python 2.6.4 + Django 1.1.1 + appengine 1.3.1(全部通过 macports 安装)

有什么想法吗?谢谢!

最佳答案

编辑:由于 App Engine 现在支持 Python 2.7,因此下面的答案可能不再相关,具体取决于个人用例。


App Engine 仅适用于 Python 2.5.x

安装 2.5,并显式运行。
例如:


python2.5/path/to/dev_appserver.py myapp

关于python - AppEngine dev_appserver.py 中止且没有错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2624686/

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