webapp2应用程序未在本地运行

时间:2016-10-26 08:08:00

标签: python-2.7 google-app-engine

我从webapp2开始。我在以下目录中创建了一个应用程序。

/home/github_projects/hellowebapp2 

但是当我尝试使用以下命令启动服务器时

/usr/lib/google-cloud-sdk/bin/dev_appserver.py github_projects/hellowebapp2

我收到以下错误:

This action requires the installation of components:  [app-engine-python]
You cannot perform this action because this Cloud SDK installation is 
managed by an external package manager.  If you would like to get the 
latest version, please see our main download page at:

https://cloud.google.com/sdk/



Traceback (most recent call last):
  File "/usr/lib/google-cloud-sdk/bin/dev_appserver.py", line 35, in <module>
    main()
  File "/usr/lib/google-cloud-sdk/bin/dev_appserver.py", line 22, in main
    command=__file__)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 189, in EnsureInstalledAndRestart
    return manager._EnsureInstalledAndRestart(components, msg, command)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 1139, in _EnsureInstalledAndRestart
    restart_args=restart_args):
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 660, in Install
    restart_args=restart_args)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 690, in Update
    self._EnsureNotDisabled()
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 357, in _EnsureNotDisabled
    'The component manager is disabled for this installation')
googlecloudsdk.core.updater.update_manager.UpdaterDisableError: The component manager is disabled for this installation

P.S我已经从https://cloud.google.com/sdk/docs/#deb

安装了sdk

1 个答案:

答案 0 :(得分:1)

好的我通过安装特定的python包解决了这个问题:

https://cloud.google.com/sdk/downloads#apt-get

  

sudo apt-get install google-cloud-sdk-app-engine-python