哦不!出现错误!:(
==============
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/zappa/cli.py", line 2693, in handle
sys.exit(cli.handle())
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/zappa/cli.py", line 475, in handle
sel
我是Docker,AWS Lambda和Zappa的新手,但我试图配置一个项目,但没有什么成功。
我连接到Docker (docker-compose run web bash),激活环境,配置AWS凭据并运行zappa init和zappa deploy。但是,在部署之后,我得到了一个错误(执行zappa tail):
ModuleNotFoundError: No module named 'project'
我相信这是因为我的dir结构不是标准的:
Dockerfile
zappa_settings.json
requirements.txt
project\
- man
我正在尝试使用Zappa在AWS Lambda上部署我的flask应用程序。我仔细地遵循了所有的教程,但我总是得到部署错误:
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502 response code.
我进入zappa tail,我发现即使在创建了pip freeze > requirements.txt之后,依赖项也没有安装。问题是,有很多依赖项,手动安装每个依赖项都很无聊。
有什么神奇的命令可以让我自动安装virtualenv
我多次尝试使用zappa部署django,得到以下错误。
{
"message": "An uncaught exception happened while servicing this request. You can investigate this with the `zappa tail` command.",
"traceback": [
"Traceback (most recent call last):\n",
" File \"/var/ta
我正在尝试在我的项目中第一次使用Zappa异步任务。我一直收到来自Amazon cloudfront的403错误请求。这是代码- @task
def send_email(email_id):
start = datetime.now()
sleep(120)
body = """zappa task started at {}
waited for 100.
mail sent at: {}""".format(str(start), str(datetime.n
运行时 zappa deploy dev 我得到了这个错误: Warning! Your project and virtualenv have the same name! You may want to re-create your venv with a new name, or explicitly define a 'project_name', as this may cause errors. 重命名virtualenv还是重命名项目更安全?如何显式定义project_name?
在使用zappa将django应用程序部署到lambda后,我遇到了一个错误。
这是一个错误:
{'message': 'An uncaught exception happened while servicing this request. You can investigate this with the `zappa tail` command.', 'traceback': ['Traceback (most recent call last):', ' File /var/task/handler.py, lin
我目前正在与kedro, version 0.15.4一起使用pipenv, version 2018.11.26。
目前,如果要使用Pipenv,我必须执行以下操作(对于本例,我希望该项目驻留在kedro-pipenv目录中):
mkdir kedro-pipenv && cd kedro-pipenv --这是必需的,以便创建的virtualenv“绑定”到项目目录,这实际上意味着它的名称是基于目录名的,此时pipenv install kedro或pipenv shell命令是executed.Unfortunately,,Pipenv没有支持自定义virtualenv
因此,我在AWS Lambda上使用Zappa。我刚刚在我的项目中添加了一个自定义用户模型,并尝试迁移到AWS上的RDS,而Zappa给了我以下错误:
InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency accounts.0001_initial on database 'default'.
现在,我知道如果我在本地服务器上得到这个错误,我会这样做:
python manage.py migrate admin zero
python manage