2017-11-01 2 views
0

私はDriverlessAI(H2O.ai)を使用していて、スコアラー(DriverlessAIから作られた診断モデル)を使用しようとしていますが、エラーが発生しました。H2O:DriverlessAIのscorer.zipでrun_tcp_client.sh(example_client.py)を実行できません

run_tcp_client.shを実行し、エラー 『倹約輸入スリフト ModuleNotFoundErrorから では、5行目、:『倹約』という名前のないモジュール「example_client.py」ファイル』 が発生しました。

文書(https://www.h2o.ai/wp-content/uploads/2017/09/driverlessai/scoring-package.html)では、run_tcp_server.shを実行した後にrun_tcp_client.shを実行すれば十分だと書かれています。

私はこれについて何ができますか?

答えて

0

あなたはdocumentationあなたがリンクごとに倹約をインストールする必要があります。

The following are required in order to run the scoring package. [..] Apache Thrift (to run the TCP scoring service)を:

Installing Thrift

Thrift is required to run the scoring service in TCP mode, but it is not required to run the scoring module. The following steps are available on the Thrift documentation site at: https://thrift.apache.org/docs/BuildingFromSource .

$ sudo apt-get install automake bison flex g++ git libevent-dev \ 
    libssl-dev libtool make pkg-config libboost-all-dev ant 
$ wget https://github.com/apache/thrift/archive/0.10.0.tar.gz 
$ tar -xvf 0.10.0.tar.gz 
$ cd thrift-0.10.0 
$ ./bootstrap.sh 
$ ./configure 
$ make 
$ sudo make install 

@EDIT:あなたはどこのフォルダに(実行できるかどう

ご確認くださいこれらのスクリプトがあります)

$ source client_env/bin/activate 
$ python -c 'from thrift.transport import TSocket' 

あなたが同じ例外を取得した場合、実行してください:

pip install -r client_requirements.txt 

をそして再び、スクリプトを実行してみてください。

+0

ありがとうございました。そして、私は詳細に説明できませんでした、申し訳ありません。 –

+0

倹約をインストールしました。私は倹約を使ったrun_tcp_server.shを実行できます。 だから、私はpythonは "thrift.transportインポートTSocketから"コードを行うことはできないと思う。 –

+0

@ H.Doi申し訳ありません私は次のことはしていません - この例を実行した後の正確なエラーは何ですか? –

関連する問題