Elastic Beanstalk:为mac部署Django,不能安装EB

时间:2014-04-24 00:51:15

标签: python django macos elastic-beanstalk

我正在尝试根据亚马逊的教程在Mac中为Django设置Elastic Beanstalk: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html

直到步骤3:配置AWS Elastic Beanstalk

当我转到第3个子步骤“ 从您创建本地存储库的目录中,键入以下命令。

eb init

错误是

(djangodev)Lee-Jamess-MacBook-Pro:~ h0925473$ git init
Reinitialized existing Git repository in /Users/h0925473/.git/
(djangodev)Lee-Jamess-MacBook-Pro:~ h0925473$ alias eb="python2.7/Users/h0925473/AWS_EB/eb/macosx/python2.7/eb"
(djangodev)Lee-Jamess-MacBook-Pro:~ h0925473$ eb init
Traceback (most recent call last):
  File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/eb", line 17, in <module>
    from scli import core
  File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/scli/core.py", line 24, in <module>
    from scli import command, cli_parse, config_file, prompt
  File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/scli/command.py", line 16, in <module>
    from lib.utility import misc
  File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/lib/utility/misc.py", line 22, in <module>
from scli.constants import OSSpecific, ServiceDefault, TerminalConstant
  File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/scli/constants.py", line 374
    ParameterName.RdsEngine,
                       ^
SyntaxError: invalid syntax

谁能告诉我我做错了什么?为什么是SyntaxError?

1 个答案:

答案 0 :(得分:0)

原因似乎我没有正确设置mysql。 请参考另一个question