GithubHelp home page GithubHelp logo

googlesamples / assistant-sdk-python Goto Github PK

View Code? Open in Web Editor NEW
913.0 91.0 323.0 676 KB

Samples and bindings for the Google Assistant API

Home Page: http://developer.google.com/assistant/sdk

License: Apache License 2.0

Python 100.00%
assistant protocol-buffers python

assistant-sdk-python's Introduction

Google Assistant SDK for devices - Python

This repository contains the Python packages for the Google Assistant SDK.

To get started, see the following developer guides:

Content

Contributing

Contributions to this repository are always welcome and highly encouraged.

See CONTRIBUTING.md for more information on how to get started.

License

Copyright (C) 2017 Google Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

assistant-sdk-python's People

Contributors

agrawal-prateek avatar dpeukert avatar fleker avatar irataxy avatar ishanka25 avatar jayvdb avatar kadeve avatar kokoro-team avatar pizlathedeveloper avatar proppy avatar ryan-clancy avatar shivasiddharth avatar szabodabo avatar udan11 avatar workingmonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

assistant-sdk-python's Issues

source code for google-assistant-library

Where can I find the source code for google-assistant-library?

I get buttery smooth audio playback with the assistant-library on the RasPi but super choppy with the assistant-grpc implementation. Tweaking the audio-block-size and other parameters didn't seem to have any significant effect.

Would love to look into the library source to see what audio libraries and settings are being used.

connection failure results in segfault and cryptic error message

I'm getting the following error on the Raspberry Pi 3 with the new 0.2.0 release. After I say "Ok Google", it shows ON_CONVERSATION_TURN_STARTED. Then a few seconds after I make the query, the error shows.

(env) pi@raspberrypi:~ $ google-assistant-demo
ON_MUTED_CHANGED:
  {'is_muted': False}
ON_START_FINISHED

ON_CONVERSATION_TURN_STARTED
[2433:2444:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
ON_ASSISTANT_ERROR:
  {'is_fatal': False}
[2433:2444:ERROR:assistant_output_handler.cc(589)] Failed with a general speech recognition error
ON_RESPONDING_STARTED:
  {'is_error_response': True}
Segmentation fault

Add voice activation via hotword

Problem:
I want to be able to activate the Assistant via voice, so I don't need to press a button (or spacebar) each time I want to talk to it.

pip install error using zsh

Im having a few issues, but im probably just being a bit stupid.
This command: python -m pip install --upgrade google-assistant-sdk[samples]
returns: zsh: no matches found: google-assistant-sdk[samples]
and this: python -m pip install --upgrade -e ".[samples]"
returns: Directory '.' is not installable. File 'setup.py' not found.

I therefore just ran: python -m pip install --upgrade google-assistant-sdk
and now when i run this: python -m googlesamples.assistant.auth_helpers --client-secrets my_path_to_thing
It returns: Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
import(pkg_name)
File "/home/james/env/lib/python3.6/site-packages/googlesamples/assistant/auth_helpers/init.py", line 20, in
import google.auth
ModuleNotFoundError: No module named 'google.auth'

Any help would be greatly appreciated
Thank you

Can't run 0.3.1 samples in virtualenv - wrong urllib3 version

Steps to reproduce:

  1. Start with a fresh Raspbian 2017-04-10 image
  2. sudo apt-get install -y python3-virtualenv portaudio19-dev libffi-dev libssl-dev
  3. python3 -m virtualenv -p python3 env
  4. env/bin/pip install --upgrade pip
  5. env/bin/pip install --upgrade google-assistant-sdk[samples]
  6. env/bin/googlesamples-assistant-pushtotalk

Fails with:

RuntimeError: Requests dependency 'urllib3' must be version >= 1.21.1, < 1.22!

This appears to be because google-assistant-grpc pulls in urlli3b 1.20. I don't know what path the deps follow to lead to a version of requests that requires urllib3 1.21.

Playing Sounds in Response to Events?

When using Google Assistant on your phone, there are several sounds that are played in response to certain events (after saying "Ok Google", etc.) - is there a nice way to get the sounds to play using the SDK?

I suppose one method would be to get the sound files from the search APK and use ALSA's "aplay" command as mentioned on the Assistant SDK website, but having these files included with the SDK would be nice.

Mute not working

I set the is_mute to True in the assistant.py, yet the mic seems to be listening for hotword.

gRPC connection hangs on PineA64

Alright, so I've got sound both recording and playing back perfectly using both arecord/aplay as well as the googlesamples.assistant.audio_helpers functions.
However, when I run googlesamples.assistant, I hear nothing, and when I press Enter, I get "Recording audio request." and nothing else. I've tried giving requests, even tried yelling into the mic. Absolutely nothing. Just sits there at Recording.

To be clear, I'm using a different device, however the dependencies have all been met. (PineA64) and as I said, audio is recording and playing back perfectly.

any insight on how I might diagnose the issue?

Can’t get past the 'Verify audio setup' step

I'm trying to get this demo working, but getting stuck at the 'Verify audio setup' step.

I'm running this command --> python -m googlesamples.assistant.audio_helpers

And get the following output:

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/pi/google-home-pi/env/lib/python2.7/site-packages/googlesamples/assistant/audio_helpers/__main__.py", line 94, in <module>
    main()
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/google-home-pi/env/lib/python2.7/site-packages/googlesamples/assistant/audio_helpers/__main__.py", line 67, in main
    flush_size=audio_flush_size)
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/googlesamples/assistant/audio_helpers/__init__.py", line 140, in __init__
    blocksize=int(block_size/2),  # blocksize is in number of frames.
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/sounddevice.py", line 1491, in __init__
    **_remove_self(locals()))
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/sounddevice.py", line 1017, in __init__
    'Error opening {0}'.format(self.__class__.__name__))
  File "/home/pi/google-home-pi/env/local/lib/python2.7/site-packages/sounddevice.py", line 2671, in _check
    raise PortAudioError(msg)
sounddevice.PortAudioError: Error opening RawStream: Invalid sample rate

Setup:

  • Raspberry Pi 3 (Model B)
  • Raspbian Jessie Lite (4.4)
  • Adafruit Mini USB Microphone (link)

Any help/tips would be much appreciated! Thanks

googlesamples-assistant-pushtotalk gives error

I am trying google assistant with raspberry pi ..I have followed all steps https://github.com/googlesamples/assistant-sdk-python/tree/master/google-assistant-sdk

ERROR:root:Error loading credentials: [Errno 2] No such file or directory: /home/pi/.config/google-oauthlib-tool/credentials.json ERROR:root:Run google-oauthlib-tool to initialize new OAuth 2.0 credentials.

I have attached downloaded credentials from Google's https://console.developers.google.com/
like this
google-oauthlib-tool --client-secrets home/pi/Downloads/client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless googlesamples

how do I solve this?

Error when trying to send a new request after several minutes of inactivity

Issue: client throws an error after pressing enter after several minutes of inactivity

Steps to reproduce:

  1. Run the client
  2. Press enter, say something, hear response
  3. Wait 5-10 minutes
  4. Press enter again. Fails

Error trace:

Press Enter to send a new request...
INFO:root:Recording audio request.
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
     "__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
     exec(code, run_globals)
File "/home/pi/embedded-assistant-sdk-python/googlesamples/assistant/__main__.py", line 254, in <module>
     main()
File "/home/pi/assistant/env/lib/python3.4/site-packages/click/core.py", line 722, in __call__
     return self.main(*args, **kwargs)
File "/home/pi/assistant/env/lib/python3.4/site-packages/click/core.py", line 697, in main
     rv = self.invoke(ctx)
File "/home/pi/assistant/env/lib/python3.4/site-packages/click/core.py", line 895, in invoke
     return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/assistant/env/lib/python3.4/site-packages/click/core.py", line 535, in invoke
     return callback(*args, **kwargs)
File "/home/pi/embedded-assistant-sdk-python/googlesamples/assistant/__main__.py", line 214, in main
     grpc_deadline):
File "/home/pi/assistant/env/lib/python3.4/site-packages/grpc/_channel.py", line 363, in __next__
     return self._next()
File "/home/pi/assistant/env/lib/python3.4/site-packages/grpc/_channel.py", line 357, in _next
     raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Endpoint read failed)> 

Google Assistant says "something went wrong... try again in a few seconds" all the time

ON_CONVERSATION_TURN_STARTED
[979:7790:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.
[979:7790:ERROR:assistant_output_handler.cc(589)] Failed with a general speech recognition error
ON_ASSISTANT_ERROR:
{'is_fatal': False}
ON_RESPONDING_STARTED:
{'is_error_response': True}
ON_RESPONDING_FINISHED
ON_CONVERSATION_TURN_FINISHED:
{'with_follow_on_turn': False}

Error when using 48,000 sample rate

I am running Assistant on a device that seems to only be capable of 48,000 sample rate.

If I run

python3 -m googlesamples.assistant.audio_helpers --audio-sample-rate 48000

It works perfectly capturing my voice and playing it back.

When I try to run the Assistant the same way, I get an invalid same rate error. Does the server not accept 48,000?

python3 -m googlesamples.assistant --audio-sample-rate 48000
INFO:root:Connecting to embeddedassistant.googleapis.com
Press Enter to send a new request...
INFO:root:Recording audio request.
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/googlesamples/assistant/__main__.py", line 273, in <module>
    main()
  File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/googlesamples/assistant/__main__.py", line 234, in main
    grpc_deadline):
  File "/usr/lib/python3.6/site-packages/grpc/_channel.py", line 363, in __next__
    return self._next()
  File "/usr/lib/python3.6/site-packages/grpc/_channel.py", line 357, in _next
    raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Invalid 'audio_in_config': bad sample_rate_hertz.)>

communication error

I'm having trouble getting assistant to work. Assistant responds to ok google and hey google with something went wrong.

`
(env) pi@google:~ $ google-assistant-demo
ON_MUTED_CHANGED:
{'is_muted': False}
ON_START_FINISHED
[14761:14772:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
[14761:14772:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.

ON_CONVERSATION_TURN_STARTED
[14761:14772:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.
[14761:14772:ERROR:assistant_output_handler.cc(589)] Failed with a general speech recognition error
ON_ASSISTANT_ERROR:
{'is_fatal': False}
ON_RESPONDING_STARTED:
{'is_error_response': True}
ON_RESPONDING_FINISHED
ON_CONVERSATION_TURN_FINISHED:
{'with_follow_on_turn': False}

`
Im connected via ssh on home wifi

Failed parsing HTTP/2 and Endpoint read failed

I'm getting two errors after a while.

  • Freshly installed Raspberry Pi 2 Model B
  • Running Python 3
  • Hooked up with Ethernet
  • Using USB headset

Endpoint read failed

Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/__main__.py", line 273, in <module>
    main()
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/__main__.py", line 234, in main
    grpc_deadline):
  File "/home/pi/env/lib/python3.4/site-packages/grpc/_channel.py", line 363, in __next__
    return self._next()
  File "/home/pi/env/lib/python3.4/site-packages/grpc/_channel.py", line 346, in _next
    raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Endpoint read failed)>

Failed parsing HTTP/2

Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/__main__.py", line 273, in <module>
    main()
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/__main__.py", line 234, in main
    grpc_deadline):
  File "/home/pi/env/lib/python3.4/site-packages/grpc/_channel.py", line 363, in __next__
    return self._next()
  File "/home/pi/env/lib/python3.4/site-packages/grpc/_channel.py", line 346, in _next
    raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Failed parsing HTTP/2)>

Raspberry pi zero installation

Hello,
does it exist a method to set up the old version of GoogleAssistantSDK? (I mean the 0.2.0)
That's because it seems to support the pi zero architecture.

Thank you very much for reading.

add simple demo to grpc package

So that developer can try something after installing:

pip install google-assistant-grpc

It could take an audio file from the command line (or stdin) and output the assistant response as pcm data.

Ideally it could work with:

arecord | python -m google.assistant.grpc | aplay

Error: Could not find a version that satisfies the requirement google-assistant-library

Hi,
I'm running google-assistant-library with:

pip install --upgrade google-assistant-library

I get this message:
Collecting google-assistant-library
Could not find a version that satisfies the requirement google-assistant-library (from versions: )
Could not find a version that satisfies the requirement google-assistant-library
No matching distribution found for google-assistant-library

Thanks!

google-assistant-library empty

The folder google-assistant-library is empty.
But it seems the library package is required to run googlesamples-assistant-hotword...

Running it returns:

  File "/home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library/hotword.py", line 26, in <module>
    from google.assistant.library import Assistant
ImportError: No module named 'google.assistant.library'

Assistant not responding to hotword

I have installed the Google assistant on my raspberry pi 3.I have followed the documentation for the google assistant sdk, but it does not work. The assistant is not responding when I say "Ok, Google"

The output when I try to start the assistant is:

(env) pi@raspberrypi:~ $ google-assistant-demo

ON_MUTED_CHANGED:
  {'is_muted': False}
ON_START_FINISHED  

When I test the recording, the recording is being played too fast. Can this be the problem that the Google assistant is not responsing?

I am also getting an error in the google cloud console: Method google.internal.speech.S3OnePlatform.Assistant

investigate unneeded dependencies

We should check if portaudio and libffi-dev dependencies are still needed, for most platform we should be able to get binary wheels for those.

Potentially Disenfranchise Raspberry PI Zero and W AIY users

I added to a comment on an issue at the google/aiyprojects-raspbian repository yesterday google/aiyprojects-raspbian#64.

The AIY project are working on replacing their current version of the Google Assistant SDK that is based on armv6 with the new version that is armv7 based. I've pointed out that some AIY users are using Raspberry PI Zero's and W's that cannot run armv7 code. At some stage in the near future those users will pull the AIY repository to receive n number of updates only to find that their AIY project no longer works because the armv7 google assistant SDK has been merged.

The response was that the issue belongs in this repository.

One point I would make is that RaspberryPi.Org in some of their materials state that the AIY can be used with the Zero and W.

Is it "good" enough to simply disenfranchise those users without providing them with advance knowledge of this and how to avoid it - either by never updating or some clever variation of running their own fork without the new SDK - regarding the later suggestion - some of the people involved will be newcomers who have no idea how to do that..

Respond time delay

Just install the GA in my Pi 3B with Raspbian and everything works fine except GA responded too fast that the first 2~3 words is missing when output the audio. I guess it is resulted from launch time conflict between GA and audio output device. (ie. audio output is 2 seconds slower than GA robot respond.) I am not sure it only happens on me or others have the same issue.

I have tried HDMI output and 3.5MM headphone, the result keeps the same. Are there any variable in library I could change to avoid this issue? Or is it just a bug?

cryptic error message if alsa initialization fails

I'm having a problem here. I followed the Google Assistant Library instructions, but when I run "google-assistant-demo", I get the following error:

OpenAlsaHandle PcmOpen: No such file or directory  
[31095:31110:ERROR:audio_input_processor.cc(756)] Input error  
ON_MUTED_CHANGED:  
  {'is_muted': False}  
ON_START_FINISHED  
ON_ASSISTANT_ERROR:  
  {'is_fatal': True}  
[31095:31112:ERROR:audio_input_processor.cc(756)] Input error  
ON_ASSISTANT_ERROR:  
  {'is_fatal': True}  

I think this may be due to my microphone. I am using a PS3 Eye, which has good microphones, but ALSA doesn't like that they are set up as an array. I had problems with this mic while using AlexaPi, so that's why I think my mic might be causing this issue.

orange pi pc compile error

Tried to install google-assistant-grpc, but the compiled error occurred.

Hardware: Orange Pi PC, OS: Armbian
ARMBIAN 5.25 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun8i
Installed all need packages. Virtualenv under python3-venv
Hope to get any help and hints.

The follwing is install process.

(env) takanobu@orangepipc:~$ pip install --upgrade google-assistant-grpc
Collecting google-assistant-grpc
Using cached google_assistant_grpc-0.0.1-py2.py3-none-any.whl
Collecting grpcio==1.2.1 (from google-assistant-grpc)
Using cached grpcio-1.2.1.tar.gz
Requirement already up-to-date: googleapis-common-protos==1.5.2 in ./env/lib/python3.4/site-packages (from google-assistant-grpc)
Requirement already up-to-date: six>=1.5.2 in ./env/lib/python3.4/site-packages (from grpcio==1.2.1->google-assistant-grpc)
Requirement already up-to-date: enum34>=1.0.4 in ./env/lib/python3.4/site-packages (from grpcio==1.2.1->google-assistant-grpc)
Requirement already up-to-date: protobuf>=3.2.0 in ./env/lib/python3.4/site-packages (from grpcio==1.2.1->google-assistant-grpc)
Requirement already up-to-date: setuptools in ./env/lib/python3.4/site-packages (from protobuf>=3.2.0->grpcio==1.2.1->google-assistant-grpc)
Requirement already up-to-date: appdirs>=1.4.0 in ./env/lib/python3.4/site-packages (from setuptools->protobuf>=3.2.0->grpcio==1.2.1->google-assistant-grpc)
Requirement already up-to-date: packaging>=16.8 in ./env/lib/python3.4/site-packages (from setuptools->protobuf>=3.2.0->grpcio==1.2.1->google-assistant-grpc)
Requirement already up-to-date: pyparsing in ./env/lib/python3.4/site-packages (from packaging>=16.8->setuptools->protobuf>=3.2.0->grpcio==1.2.1->google-assistant-grpc)
Building wheels for collected packages: grpcio
Running setup.py bdist_wheel for grpcio ... error
Complete output from command /home/takanobu/env/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-gdtonlfq/grpcio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpv_nlngyupip-wheel- --python-tag cp34:
Found cython-generated files...
running bdist_wheel
running build
running build_py
running build_project_metadata
creating python_build
creating python_build/lib.linux-armv7l-3.4
creating python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_grpcio_metadata.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_common.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_utilities.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_auth.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_server.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_credential_composition.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_plugin_wrapping.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/init.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_channel.py -> python_build/lib.linux-armv7l-3.4/grpc
creating python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/interfaces.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/_client_adaptations.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/implementations.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/init.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/_server_adaptations.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/utilities.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
creating python_build/lib.linux-armv7l-3.4/grpc/framework
copying src/python/grpcio/grpc/framework/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework
creating python_build/lib.linux-armv7l-3.4/grpc/_cython
copying src/python/grpcio/grpc/_cython/init.py -> python_build/lib.linux-armv7l-3.4/grpc/_cython
creating python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/stream_util.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/logging_pool.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/stream.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/callable_util.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/abandonment.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/future.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
creating python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces
copying src/python/grpcio/grpc/framework/interfaces/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces
creating python_build/lib.linux-armv7l-3.4/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/style.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/cardinality.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/common
creating python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/face.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/utilities.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
creating python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/base.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/utilities.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
creating python_build/lib.linux-armv7l-3.4/grpc/_cython/_cygrpc
copying src/python/grpcio/grpc/_cython/_cygrpc/init.py -> python_build/lib.linux-armv7l-3.4/grpc/_cython/_cygrpc
creating python_build/lib.linux-armv7l-3.4/grpc/_cython/_credentials
copying src/python/grpcio/grpc/_cython/_credentials/roots.pem -> python_build/lib.linux-armv7l-3.4/grpc/_cython/_credentials
running build_ext
Found cython-generated files...
building 'grpc._cython.cygrpc' extension
creating python_build/temp.linux-armv7l-3.4
creating python_build/temp.linux-armv7l-3.4/src
creating python_build/temp.linux-armv7l-3.4/src/python
creating python_build/temp.linux-armv7l-3.4/src/python/grpcio
creating python_build/temp.linux-armv7l-3.4/src/python/grpcio/grpc
creating python_build/temp.linux-armv7l-3.4/src/python/grpcio/grpc/_cython
creating python_build/temp.linux-armv7l-3.4/src/core
creating python_build/temp.linux-armv7l-3.4/src/core/lib
creating python_build/temp.linux-armv7l-3.4/src/core/lib/profiling
creating python_build/temp.linux-armv7l-3.4/src/core/lib/support
creating python_build/temp.linux-armv7l-3.4/src/core/lib/surface
creating python_build/temp.linux-armv7l-3.4/src/core/lib/channel
creating python_build/temp.linux-armv7l-3.4/src/core/lib/compression
creating python_build/temp.linux-armv7l-3.4/src/core/lib/debug
creating python_build/temp.linux-armv7l-3.4/src/core/lib/http
creating python_build/temp.linux-armv7l-3.4/src/core/lib/iomgr
creating python_build/temp.linux-armv7l-3.4/src/core/lib/json
creating python_build/temp.linux-armv7l-3.4/src/core/lib/slice
creating python_build/temp.linux-armv7l-3.4/src/core/lib/transport
creating python_build/temp.linux-armv7l-3.4/src/core/ext
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/server
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/server/secure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/transport
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/alpn
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/context
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/composite
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/fake
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/google_default
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/iam
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/jwt
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/oauth2
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/plugin
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/ssl
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/transport
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/util
creating python_build/temp.linux-armv7l-3.4/src/core/lib/tsi
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/client
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/client/secure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/client_channel
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/server/insecure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/client/insecure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto/grpc
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto/grpc/lb
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1
creating python_build/temp.linux-armv7l-3.4/third_party
creating python_build/temp.linux-armv7l-3.4/third_party/nanopb
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/pick_first
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/round_robin
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver/dns
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver/dns/native
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver/sockaddr
creating python_build/temp.linux-armv7l-3.4/src/core/ext/load_reporting
creating python_build/temp.linux-armv7l-3.4/src/core/ext/census
creating python_build/temp.linux-armv7l-3.4/src/core/ext/census/gen
creating python_build/temp.linux-armv7l-3.4/src/core/plugin_registry
creating python_build/temp.linux-armv7l-3.4/src/boringssl
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/aes
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/asn1
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/base64
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bio
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bn
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bn/asm
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/buf
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bytestring
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/chacha
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/cipher
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/cmac
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/conf
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/curve25519
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/des
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/dh
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/digest
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/dsa
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/ec
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/ecdh
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/ecdsa
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/engine
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/err
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/evp
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/hkdf
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/hmac
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/lhash
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/md4
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/md5
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/modes
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/newhope
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/obj
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/pem
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/pkcs8
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/poly1305
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/rand
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/rc4
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/rsa
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/sha
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/stack
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/x509
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/x509v3
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/ssl
creating python_build/temp.linux-armv7l-3.4/third_party/zlib
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DPyMODINIT_FUNC=attribute((visibility ("default"))) PyObject* -Isrc/python/grpcio -Iinclude -I. -Ithird_party/boringssl/include -Ithird_party/zlib -I/home/takanobu/env/include -I/usr/include/python3.4m -c src/python/grpcio/grpc/_cython/cygrpc.c -o python_build/temp.linux-armv7l-3.4/src/python/grpcio/grpc/_cython/cygrpc.o -fvisibility=hidden -fno-wrapv -pthread -std=gnu99
In file included from src/python/grpcio/grpc/_cython/cygrpc.c:487:0:
include/grpc/support/alloc.h:75:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
GPRAPI gpr_allocation_functions gpr_get_allocation_functions();
^
In file included from src/python/grpcio/grpc/_cython/cygrpc.c:491:0:
include/grpc/grpc_security.h:203:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
GRPCAPI gpr_timespec grpc_max_auth_token_lifetime();
^
src/python/grpcio/grpc/_cython/cygrpc.c:2335:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject __pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_4infinite_future(); / proto */
^
src/python/grpcio/grpc/_cython/cygrpc.c:2336:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject __pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_6infinite_past(); / proto */
^
src/python/grpcio/grpc/_cython/cygrpc.c:11972:18: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject *__pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_4infinite_future() {
^
src/python/grpcio/grpc/_cython/cygrpc.c:12046:18: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject *__pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_6infinite_past() {
^
src/python/grpcio/grpc/_cython/cygrpc.c: In function ‘pyx_pf_4grpc_7_cython_6cygrpc_9Operation_24received_message_or_none___get’:
src/python/grpcio/grpc/_cython/cygrpc.c:33765:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
Preprocessed source stored into /tmp/ccO3W66I.out file, please attach this to your bugreport.
creating tmp
creating tmp/tmp9oe93wth
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/home/takanobu/env/include -I/usr/include/python3.4m -c /tmp/tmp9oe93wth/a.c -o tmp/tmp9oe93wth/a.o
Traceback (most recent call last):
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
extra_postargs)
File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/_spawn_patch.py", line 69, in _commandfile_spawn
_classic_spawn(self, command)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/commands.py", line 281, in build_extensions
build_ext.build_ext.build_extensions(self)
File "/home/takanobu/env/lib/python3.4/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
self.build_extension(ext)
File "/home/takanobu/env/lib/python3.4/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
depends=ext.depends)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-gdtonlfq/grpcio/setup.py", line 280, in
cmdclass=COMMAND_CLASS,
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/takanobu/env/lib/python3.4/site-packages/wheel/bdist_wheel.py", line 179, in run
self.run_command('build')
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.4/distutils/command/build.py", line 126, in run
self.run_command(cmd_name)
File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/takanobu/env/lib/python3.4/site-packages/setuptools/command/build_ext.py", line 75, in run
_build_ext.run(self)
File "/home/takanobu/env/lib/python3.4/site-packages/Cython/Distutils/old_build_ext.py", line 185, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/commands.py", line 286, in build_extensions
"Failed build_ext step:\n{}".format(formatted_exception))
commands.CommandError: Failed build_ext step:
Traceback (most recent call last):
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
extra_postargs)
File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/_spawn_patch.py", line 69, in _commandfile_spawn
_classic_spawn(self, command)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/commands.py", line 281, in build_extensions
build_ext.build_ext.build_extensions(self)
File "/home/takanobu/env/lib/python3.4/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
self.build_extension(ext)
File "/home/takanobu/env/lib/python3.4/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
depends=ext.depends)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for grpcio
Running setup.py clean for grpcio
Failed to build grpcio
Installing collected packages: grpcio, google-assistant-grpc
Running setup.py install for grpcio ... error
Complete output from command /home/takanobu/env/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-gdtonlfq/grpcio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-jpqc58wp-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/takanobu/env/include/site/python3.4/grpcio:
Found cython-generated files...
running install
running build
running build_py
running build_project_metadata
creating python_build
creating python_build/lib.linux-armv7l-3.4
creating python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_grpcio_metadata.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_common.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_utilities.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_auth.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_server.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_credential_composition.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_plugin_wrapping.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/init.py -> python_build/lib.linux-armv7l-3.4/grpc
copying src/python/grpcio/grpc/_channel.py -> python_build/lib.linux-armv7l-3.4/grpc
creating python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/interfaces.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/_client_adaptations.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/implementations.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/init.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/_server_adaptations.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
copying src/python/grpcio/grpc/beta/utilities.py -> python_build/lib.linux-armv7l-3.4/grpc/beta
creating python_build/lib.linux-armv7l-3.4/grpc/framework
copying src/python/grpcio/grpc/framework/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework
creating python_build/lib.linux-armv7l-3.4/grpc/_cython
copying src/python/grpcio/grpc/_cython/init.py -> python_build/lib.linux-armv7l-3.4/grpc/_cython
creating python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/stream_util.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/logging_pool.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/stream.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/callable_util.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/abandonment.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
copying src/python/grpcio/grpc/framework/foundation/future.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/foundation
creating python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces
copying src/python/grpcio/grpc/framework/interfaces/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces
creating python_build/lib.linux-armv7l-3.4/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/style.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/common
copying src/python/grpcio/grpc/framework/common/cardinality.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/common
creating python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/face.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
copying src/python/grpcio/grpc/framework/interfaces/face/utilities.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/face
creating python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/base.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/init.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
copying src/python/grpcio/grpc/framework/interfaces/base/utilities.py -> python_build/lib.linux-armv7l-3.4/grpc/framework/interfaces/base
creating python_build/lib.linux-armv7l-3.4/grpc/_cython/_cygrpc
copying src/python/grpcio/grpc/_cython/_cygrpc/init.py -> python_build/lib.linux-armv7l-3.4/grpc/_cython/_cygrpc
creating python_build/lib.linux-armv7l-3.4/grpc/_cython/_credentials
copying src/python/grpcio/grpc/_cython/_credentials/roots.pem -> python_build/lib.linux-armv7l-3.4/grpc/_cython/_credentials
running build_ext
Found cython-generated files...
building 'grpc._cython.cygrpc' extension
creating python_build/temp.linux-armv7l-3.4
creating python_build/temp.linux-armv7l-3.4/src
creating python_build/temp.linux-armv7l-3.4/src/python
creating python_build/temp.linux-armv7l-3.4/src/python/grpcio
creating python_build/temp.linux-armv7l-3.4/src/python/grpcio/grpc
creating python_build/temp.linux-armv7l-3.4/src/python/grpcio/grpc/_cython
creating python_build/temp.linux-armv7l-3.4/src/core
creating python_build/temp.linux-armv7l-3.4/src/core/lib
creating python_build/temp.linux-armv7l-3.4/src/core/lib/profiling
creating python_build/temp.linux-armv7l-3.4/src/core/lib/support
creating python_build/temp.linux-armv7l-3.4/src/core/lib/surface
creating python_build/temp.linux-armv7l-3.4/src/core/lib/channel
creating python_build/temp.linux-armv7l-3.4/src/core/lib/compression
creating python_build/temp.linux-armv7l-3.4/src/core/lib/debug
creating python_build/temp.linux-armv7l-3.4/src/core/lib/http
creating python_build/temp.linux-armv7l-3.4/src/core/lib/iomgr
creating python_build/temp.linux-armv7l-3.4/src/core/lib/json
creating python_build/temp.linux-armv7l-3.4/src/core/lib/slice
creating python_build/temp.linux-armv7l-3.4/src/core/lib/transport
creating python_build/temp.linux-armv7l-3.4/src/core/ext
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/server
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/server/secure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/transport
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/alpn
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/context
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/composite
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/fake
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/google_default
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/iam
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/jwt
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/oauth2
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/plugin
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/credentials/ssl
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/transport
creating python_build/temp.linux-armv7l-3.4/src/core/lib/security/util
creating python_build/temp.linux-armv7l-3.4/src/core/lib/tsi
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/client
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/client/secure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/client_channel
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/server/insecure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/transport/chttp2/client/insecure
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto/grpc
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto/grpc/lb
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1
creating python_build/temp.linux-armv7l-3.4/third_party
creating python_build/temp.linux-armv7l-3.4/third_party/nanopb
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/pick_first
creating python_build/temp.linux-armv7l-3.4/src/core/ext/lb_policy/round_robin
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver/dns
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver/dns/native
creating python_build/temp.linux-armv7l-3.4/src/core/ext/resolver/sockaddr
creating python_build/temp.linux-armv7l-3.4/src/core/ext/load_reporting
creating python_build/temp.linux-armv7l-3.4/src/core/ext/census
creating python_build/temp.linux-armv7l-3.4/src/core/ext/census/gen
creating python_build/temp.linux-armv7l-3.4/src/core/plugin_registry
creating python_build/temp.linux-armv7l-3.4/src/boringssl
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/aes
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/asn1
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/base64
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bio
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bn
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bn/asm
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/buf
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/bytestring
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/chacha
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/cipher
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/cmac
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/conf
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/curve25519
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/des
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/dh
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/digest
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/dsa
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/ec
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/ecdh
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/ecdsa
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/engine
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/err
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/evp
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/hkdf
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/hmac
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/lhash
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/md4
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/md5
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/modes
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/newhope
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/obj
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/pem
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/pkcs8
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/poly1305
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/rand
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/rc4
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/rsa
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/sha
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/stack
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/x509
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/crypto/x509v3
creating python_build/temp.linux-armv7l-3.4/third_party/boringssl/ssl
creating python_build/temp.linux-armv7l-3.4/third_party/zlib
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DPyMODINIT_FUNC=attribute((visibility ("default"))) PyObject* -Isrc/python/grpcio -Iinclude -I. -Ithird_party/boringssl/include -Ithird_party/zlib -I/home/takanobu/env/include -I/usr/include/python3.4m -c src/python/grpcio/grpc/_cython/cygrpc.c -o python_build/temp.linux-armv7l-3.4/src/python/grpcio/grpc/_cython/cygrpc.o -fvisibility=hidden -fno-wrapv -pthread -std=gnu99
In file included from src/python/grpcio/grpc/_cython/cygrpc.c:487:0:
include/grpc/support/alloc.h:75:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
GPRAPI gpr_allocation_functions gpr_get_allocation_functions();
^
In file included from src/python/grpcio/grpc/_cython/cygrpc.c:491:0:
include/grpc/grpc_security.h:203:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
GRPCAPI gpr_timespec grpc_max_auth_token_lifetime();
^
src/python/grpcio/grpc/_cython/cygrpc.c:2335:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject __pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_4infinite_future(); / proto */
^
src/python/grpcio/grpc/_cython/cygrpc.c:2336:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject __pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_6infinite_past(); / proto */
^
src/python/grpcio/grpc/_cython/cygrpc.c:11972:18: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject *__pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_4infinite_future() {
^
src/python/grpcio/grpc/_cython/cygrpc.c:12046:18: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
static PyObject *__pyx_pf_4grpc_7_cython_6cygrpc_8Timespec_6infinite_past() {
^
src/python/grpcio/grpc/_cython/cygrpc.c: In function ‘pyx_pf_4grpc_7_cython_6cygrpc_9Operation_24received_message_or_none___get’:
src/python/grpcio/grpc/_cython/cygrpc.c:33765:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
Preprocessed source stored into /tmp/ccVzWj93.out file, please attach this to your bugreport.
creating tmp/tmp9vswvr_m
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/home/takanobu/env/include -I/usr/include/python3.4m -c /tmp/tmp9vswvr_m/a.c -o tmp/tmp9vswvr_m/a.o
Traceback (most recent call last):
File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
extra_postargs)
File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/_spawn_patch.py", line 69, in _commandfile_spawn
_classic_spawn(self, command)
File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/commands.py", line 281, in build_extensions
    build_ext.build_ext.build_extensions(self)
  File "/home/takanobu/env/lib/python3.4/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
    self.build_extension(ext)
  File "/home/takanobu/env/lib/python3.4/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
    depends=ext.depends)
  File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-gdtonlfq/grpcio/setup.py", line 280, in <module>
    cmdclass=COMMAND_CLASS,
  File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/takanobu/env/lib/python3.4/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.4/distutils/command/install.py", line 583, in run
    self.run_command('build')
  File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.4/distutils/command/build.py", line 126, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/takanobu/env/lib/python3.4/site-packages/setuptools/command/build_ext.py", line 75, in run
    _build_ext.run(self)
  File "/home/takanobu/env/lib/python3.4/site-packages/Cython/Distutils/old_build_ext.py", line 185, in run
    _build_ext.build_ext.run(self)
  File "/usr/lib/python3.4/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/commands.py", line 286, in build_extensions
    "Failed `build_ext` step:\n{}".format(formatted_exception))
commands.CommandError: Failed `build_ext` step:
Traceback (most recent call last):
  File "/usr/lib/python3.4/distutils/unixccompiler.py", line 116, in _compile
    extra_postargs)
  File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/_spawn_patch.py", line 69, in _commandfile_spawn
    _classic_spawn(self, command)
  File "/usr/lib/python3.4/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/usr/lib/python3.4/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/usr/lib/python3.4/distutils/spawn.py", line 162, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/pip-build-gdtonlfq/grpcio/src/python/grpcio/commands.py", line 281, in build_extensions
    build_ext.build_ext.build_extensions(self)
  File "/home/takanobu/env/lib/python3.4/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
    self.build_extension(ext)
  File "/home/takanobu/env/lib/python3.4/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib/python3.4/distutils/command/build_ext.py", line 503, in build_extension
    depends=ext.depends)
  File "/usr/lib/python3.4/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/lib/python3.4/distutils/unixccompiler.py", line 118, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


----------------------------------------

Command "/home/takanobu/env/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-gdtonlfq/grpcio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-jpqc58wp-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/takanobu/env/include/site/python3.4/grpcio" failed with error code 1 in /tmp/pip-build-gdtonlfq/grpcio/

ImportError: No module named 'google.protobuf'

When running python3 -m googlesamples.assistant I got the following error:

Traceback (most recent call last):
  File "/usr/lib64/python3.5/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.5/site-packages/googlesamples/assistant/__main__.py", line 21, in <module>
    from google.assistant.embedded.v1alpha1 import embedded_assistant_pb2
  File "/usr/lib/python3.5/site-packages/google/assistant/embedded/v1alpha1/embedded_assistant_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
ImportError: No module named 'google.protobuf'

I have protobuf already installed since running python3 -m pip install protobuf gives:

Requirement already satisfied: protobuf in /usr/lib64/python3.5/site-packages
Requirement already satisfied: six>=1.9 in /usr/lib/python3.5/site-packages (from protobuf)
Requirement already satisfied: setuptools in /usr/lib/python3.5/site-packages (from protobuf)
Requirement already satisfied: appdirs>=1.4.0 in /usr/lib/python3.5/site-packages (from setuptools->protobuf)
Requirement already satisfied: packaging>=16.8 in /usr/lib/python3.5/site-packages (from setuptools->protobuf)
Requirement already satisfied: pyparsing in /usr/lib/python3.5/site-packages (from packaging>=16.8->setuptools->protobuf)

Also the python3 -m googlesamples.assistant.audio_helpers command works fine.

assistant-sdk-c++ ?

Hi
Does google have any plans to develop c++ sdk ? A lot of devices dont have python engine.

Better message for retrying

The current error message printed when retrying the grpc connection make it looks like something bad happened.

INFO:root:Recording audio request.
ERROR:root:grpc unavailable error: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)>
INFO:root:Recording audio request.

The level should be switched to warning and more explicit about the fact that the gRPC call is retried

How can i increase sensitivity of wake word ?

Also i am getting this error after internet get disconnected.

May 28 18:44:30 raspberrypi bash[4980]: [4990:5008:ERROR:speech_processing_task.                                                                                        cc(646)] Detected communication error: Downstream closed prematurely.
May 28 18:44:30 raspberrypi bash[4980]: [4990:5008:ERROR:assistant_output_handle                                                                                        r.cc(589)] Failed with a general speech recognition error
May 28 18:49:15 raspberrypi bash[4980]: [4990:5008:ERROR:speech_processing_task.                                                                                        cc(646)] Detected communication error: Downstream closed prematurely.
May 28 18:49:15 raspberrypi bash[4980]: [4990:5008:ERROR:assistant_output_handle                                                                                        r.cc(589)] Failed with a general speech recognition error
May 28 18:49:26 raspberrypi bash[4980]: [4990:5008:ERROR:speech_processing_task.                                                                                        cc(646)] Detected communication error: Downstream closed prematurely.
May 28 18:49:26 raspberrypi bash[4980]: [4990:5008:ERROR:assistant_output_handle                                                                                        r.cc(589)] Failed with a general speech recognition error
May 28 18:49:32 raspberrypi bash[4980]: [4990:5008:ERROR:speech_processing_task.                                                                                        cc(646)] Detected communication error: Downstream closed prematurely.
May 28 18:49:33 raspberrypi bash[4980]: [4990:5008:ERROR:assistant_output_handle                                                                                        r.cc(589)] Failed with a general speech recognition error
May 28 19:55:22 raspberrypi bash[4980]: [4990:5008:ERROR:speech_processing_task.                                                                                        cc(646)] Detected communication error: Downstream closed prematurely.
May 28 19:55:22 raspberrypi bash[4980]: [4990:5008:ERROR:assistant_output_handle                                                                                        r.cc(589)] Failed with a general speech recognition error

After restarting assistant it works fine

Install failure with armv6l architecture

I followed all the instructions faithfully until I got to "Get the library and sample code" and ran into this error:

(env) pi@raspberrypi:~ $ python -m pip install --upgrade https://github.com/googlesamples/assistant-sdk-python/releases/download/0.3.0/google_assistant_library-0.0.2-py2.py3-none-linux_armv7l.whl
- google_assistant_library-0.0.2-py2.py3-none-linux_armv7l.whl is not a supported wheel on this platform

Note I am running on the latest Raspberry Pi Zero Wireless and latest Jessie image:

(env) pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux

I see that mine is armv6l and your release is for armv7l.

+ Can you please add support for armv6l ?

sample fails to launch under Python IDLE

When i launch pushtotalk.py i get the following error.
(cannot import name 'assistant_helpers')

this is the code line
try:
from . import (
assistant_helpers,
audio_helpers
)
except SystemError:
import assistant_helpers
import audio_helpers

Problems with Jabra 510 USB speaker: high pitch when answering

The speakerphone works perfectly with other programs, and also during the test (arecord and aplay).

When launching the program, the mic part works well (you can read it recognized the wake word and the query), it also issues the right commands (I turn on a Hue light with it), but the speaker part is with a very high pitch, like if the frequency or rate are totally wrong.

How to solve?

WARNING:root:SoundDeviceStream write underflow (size: 1600)

Hi
I verify audio setup works fine.
But when I run the demo, there are too many "WARNING:root:SoundDeviceStream write underflow (size: 1600)", record and play are discontinuity.

(env)pi@raspberrypi:~ $ proxychains python -m googlesamples.assistant   
ProxyChains-3.1 (http://proxychains.sf.net)
|S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK
|S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK
INFO:root:Connecting to embeddedassistant.googleapis.com
Press Enter to send a new request...
INFO:root:Recording audio request.
|S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK
WARNING:root:SoundDeviceStream read overflow (3200, 6400)
INFO:root:End of audio request detected
INFO:root:Transcript of user request: "what's the timer block".
INFO:root:Playing assistant response.
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
INFO:root:Finished playing assistant response.
Press Enter to send a new request...
INFO:root:Recording audio request.
ERROR:root:server error: Service unavailable.
INFO:root:Finished playing assistant response.
Press Enter to send a new request...
INFO:root:Recording audio request.
INFO:root:End of audio request detected
INFO:root:Transcript of user request: "how are you".
INFO:root:Playing assistant response.
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
INFO:root:Finished playing assistant response.
Press Enter to send a new request...
INFO:root:Recording audio request.
^C
Aborted!

google-assistant-demo googlesamples-assistant-hotword stuck.

<Device&OS>
Linux orangepipc 3.4.113-sun8i #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 armv7l armv7l armv7l GNU/Linux

I tried this SDK under python3-venv, all install will be OK, but I wonder the followings might be not good.

  1. googlesamples-assistant-pushtotalk works well but displayed "WARNING:root:SoundDeviceStream read overflow (3200, 6400)"

  2. The following samples have been stuck.

$ google-assistant-demo
ON_MUTED_CHANGED:
{'is_muted': False}
ON_START_FINISHED

$ googlesamples-assistant-hotword
ON_MUTED_CHANGED:
{'is_muted': False}
ON_START_FINISHED

As the above item 1 works well, so any other problems related to item 2???

split grpc package from google-assistant-sdk

So that it's easier:

  • to just depends on the bindings
  • still distribute the tooling/sample/helpers separately
  • show how to depends on the grpc bindings with requirements.txt in samples

Install failure in armv71 architecture

Hi, I was following the installation guide and I encountered with this error message:

google_assistant_library-0.0.2-py2.py3-none-linux_armv71.whl is not a supported wheel on this platform.

Prior this error, none showed up while I was following the guide. I'm using a Raspberry Pi 3 model B (armv71) and I already updated pip as said in #37 , which seems to be a similar problem but in different architecture.
Any idea what's wrong?

Start up error

When I run the command google-assistant-demo I get this error:

ON_MUTED_CHANGED:
{'is_muted': False}
ON_START_FINISHED
[16902:16919:ERROR:mic_failure_detector.cc(120)] Channel 1 has failed. Powers -inf and -inf
[16902:17481:ERROR:mic_failure_detector.cc(120)] Channel 1 has failed. Powers -inf and -inf
[16902:17643:ERROR:mic_failure_detector.cc(120)] Channel 1 has failed. Powers -inf and -inf

My mic is running fine, I can hear myself when recording.

My Google Assistant doesn't work and is spamming the console

It's saying this all the time:
"ON_START_FINISHED
[1228:1278:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
[1228:1278:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.
[1228:1278:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
[1228:1278:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.
[1228:1278:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
[1228:1278:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.
[1228:1278:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
[1228:1278:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely.
[1228:1278:ERROR:speech_processing_task.cc(340)] S3 connection has timed out: No data from S3
[1228:1278:ERROR:speech_processing_task.cc(646)] Detected communication error: Downstream closed prematurely."

It started doing this some hours ago. It worked just fine before that. I'm using an Raspberry Pi 3 with Wi-Fi.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.