LoginSignup
0
1

More than 5 years have passed since last update.

ImportError: No module named appengine.api - Google App Engine + Golang(Go言語)

Posted at

Google App Engine + Golang(Go言語)で動かそうとすると

No module named appengine.api

というエラーが出て何も出来ないとき対処方法

エラー

% dev_appserver.py dev.yaml
Traceback (most recent call last):
  File "/usr/local/bin/dev_appserver.py", line 103, in <module>
    _run_file(__file__, globals())
  File "/usr/local/bin/dev_appserver.py", line 97, in _run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "/usr/local/Cellar/app-engine-go-64/1.9.54/share/app-engine-go-64/google/appengine/tools/devappserver2/devappserver2.py", line 26, in <module>
    from google.appengine.api import request_info
ImportError: No module named appengine.api

protobufをアンインストール

Python用のProtocol Bufferのモジュールが競合して起こっているらしい

% pip uninstall protobuf

このコマンドで削除してあげると何事もなかったかのように動き出す

0
1
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
0
1