我已经为Google App Engine构建了一个应用程序,当我尝试运行该应用程序时,它工作正常。但是当我部署它时,它会抛出内部服务器500错误。当我检查错误报告时,它说:“目录中没有名为‘cloud’的模块”。
以下是我的requirements.txt:
当我手动运行时,它可以工作。但是在部署后,出现了错误。
感谢您的预先支持。
以下是我的requirements.txt:
gunicorn==19.3.0
twilio==6.8.4
google-cloud-automl==0.1.1
google-cloud-storage==1.0.0
google-cloud==0.34.0
GoogleAppEngineCloudStorageClient==1.9.22.1
我的Yaml文件如下:
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: .*
script: main.app
Python文件中使用的导入模块有:
from google.cloud import automl_v1beta1 as automl
from google.cloud import storage
当我手动运行时,它可以工作。但是在部署后,出现了错误。
ImportError: No module named cloud
<module> (/base/data/home/apps/..
感谢您的预先支持。
谢谢