LoginSignup
0
0

More than 5 years have passed since last update.

5分で解決・Google AIY Voice Kit ssh接続でプログラム実行エラーが発生したら

Last updated at Posted at 2018-02-24

はじめに

sshを使用して、Google AIY Voice Kitの[assistant_library_demo.py]実行時に下記エラーが出た時の解決方法を説明します。

エラー内容

Traceback (most recent call last):
File "./assistant_library_demo.py", line 30, in
import aiy.assistant.auth_helpers
ImportError: No module named 'aiy'

解決方法

sshから実行するには、どうやらvenv環境に入る必要がある様です。

下記の通りコマンドを実行すると

cd AIY-voice-kit-python
source env/bin/activate

(env)と表示されvenv環境に切り替わります。

スクリーンショット 2018-02-24 10.33.11.png

デモプログラム実行すると

./assistant_library_demo.py 

無事実行され、「オッケーグーグル」機能で遊ぶことができます。

スクリーンショット 2018-02-24 10.30.34.png

まとめ

Google AIY Voice Kitのサンプルプログラムをsshで実行する場合は、venv環境への切り替えが必要。
"source env/bin/activate"

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