2017-09-24 54 views
0

如下我已經指定了一個app.yaml文件:瓶進口是在谷歌應用程序引擎的標準環境未能

runtime: python 
env: standard 
# this assumes that the entrypoint is app.py 
entrypoint: gunicorn -b :$PORT main:app 
threadsafe: true 

運行gcloud app deploy我面對的是一個500錯誤後,將日誌顯示以下

Traceback (most recent call last): 
    File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle 
handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) 
    File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler 
handler, path, err = LoadObject(self._handler) 
    File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject 
obj = __import__(path[0]) 
    File "/base/data/home/apps/g~test-website/20170924t080410.404328292497306090/app.py", line 3, in <module> 
from flask import Flask, render_template 
ImportError: No module named flask 

誰能幫我配置標準環境

+0

好吧,要解決您需要上傳燒瓶模塊以及您的應用程序的錯誤消息。這是一個衆所周知的問題。 https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27 –

+0

我做了如下操作,並使用我的配置,它給出了在應用程序配置 中找不到URLMap條目「/home/dev_test/test-website/app.yaml」,第5行,第1列' – cr05s19xx

+0

問一個新問題;) –

回答