LoginSignup
2
0

More than 3 years have passed since last update.

GAE/Goのローカルサーバーが起動しなかった「dev_appserver.py: error: too few arguments」のエラー解決法

Posted at

GAE/Goのアプリのサンプルを写経していたときのこと。

ローカルサーバーの起動をするために、

> dev_appserver.py app.yaml

すると、

dev_appserver.py: error: too few arguments
(引数が少なすぎます)

調べてみると、すでに解決法がありました。

問題点

  • Google Cloud SDKバンドルのpythonのコマンドに不備がある

修正するレジストリキー

  • regeditを起動し、以下のキーを修正します。
  • 引数を渡すようにコマンドを変更(%*を付け足し)ます 。
Computer\HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command
- "C:\Users\(省略..)\python.exe" "%1"
+ "C:\Users\(省略..)\python.exe" "%1" %*
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0