resopnder で「 'typesystem' has no attribute 'SchemaDefinitions'」エラーを回避する
responder でアプリケーションを書いても AttributeError: module 'typesystem' has no attribute 'SchemaDefinitions' というエラーになる場合があります。 例えば以下のように pip で gunicorn や responder をインストールせずにインストールし、アプリケーションを実行した場合にエラーになるかも知れません。
1 2 3 4 5 6 | |
Version 0.3.0 の commit を見ると SchemaDefinitions から Definitions という名前に変更されたように見えます。 このエラーを避ける為には以下のように typesystem のバージョンを 変更前 の 0.2.5 に固定してインストールすることで回避出来ます。
1 | |
もしくは下記のように requirements.txt を用意し、そちらからインストールする方法もあります。
1 2 3 4 5 6 | |