我有一个使用python制作的烧瓶应用程序,我正在尝试使用aws的beanstalk进行部署。我已经更新了我的requirements.txt以包含我用pip安装的所有依赖项。我的requirements.txt文件如下所示:
Flask==0.10.1
Flask-SQLAlchemy==2.0
Flask-WTF==0.10.3
Jinja2==2.7.3
MarkupSafe==0.23
PyMySQL==0.6.3
SQLAlchemy==0.9.8
WTForms==2.0.1
Werkzeug==0.9.6
argparse==1.2.1
distribute==0.6.24
itsdangerous==0.24
wsgiref==0.1.2
boto==2.28.0
certifi==2017.4.17
chardet==3.0.3
click==6.7
idna==2.5
numpy==1.12.1
praw==4.5.1
prawcore==0.10.1
requests==2.17.3
scikit-learn==0.18.1
scipy==0.19.0
sklearn==0.0
update-checker==0.16
urllib3==1.21.1
Werkzeug==0.12.2
每当我尝试在我的终端中键入eb create来创建beanstalk应用程序时,我会收到此requirements.txt错误。它还告诉我"快照"我的日志详细信息,我不确定该怎么做。想法?
作为参考,这是当我输入“eb create'
时终端显示的全套错误消息ERROR: Your requirements.txt is invalid. Snapshot your logs for details.
ERROR: [Instance: i-057ab89339b0d77c3] Command failed on instance. Return code: 1 Output: (TRUNCATED)...)
File "/usr/lib64/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1.
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.