Mate - you are a superstar. I had been trying to troubleshoot the tostring() issue for some time and was unable to land on the right python documentation. Your video proved extremely valuable. Here, have some claps 👏👏👏
@@SamWestbyTech also i bypassed that by removing --headless, but now im getting Traceback (most recent call last): File "/home/admin/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/admin/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 27, in from google.assistant.embedded.v1alpha1 import embedded_assistant_pb2 File "/home/admin/env/lib/python3.9/site-packages/google/assistant/embedded/v1alpha1/embedded_assistant_pb2.py", line 36, in _descriptor.EnumValueDescriptor( File "/home/admin/env/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 796, in __new__ _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). More information: developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
I used a slightly different setup, but it wasn't working. I noticed the error message I was getting in your video, and the solution for it (adding the line to bashrc) and now it works great! So thanks for making this video. It really helped me out.
Nice. I managed to make this work! Maybe next video about how to use traits? I couldn't really do that - assistant says my device isn't available if i try turn on / off.
Hi, can you help ? i get this error Traceback (most recent call last): File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in from tenacity import retry, stop_after_attempt, retry_if_exception File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 355 from tenacity.async import AsyncRetrying ^ SyntaxError: invalid syntax
i try to use picovoice wake word engine but it can not access microphone when alexa running. can you show how to config alsa to share microphone between multiple application under terminal ?
Any idea about this issue? Traceback (most recent call last): File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 22, in import grpc File "/home/pi/env/lib/python3.9/site-packages/grpc/__init__.py", line 22, in from grpc import _compression File "/home/pi/env/lib/python3.9/site-packages/grpc/_compression.py", line 15, in from grpc._cython import cygrpc ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)
$ source env/bin/activate $ python3 -m pip install grpcio==1.44.0 $ deactivate i solved it using these comands but know i have another problem File "/home/pi/pyv3/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/pyv3/env/lib/python3.7/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 32, in from . import ( File "/home/pi/pyv3/env/lib/python3.7/site-packages/googlesamples/assistant/grpc/audio_helpers.py", line 25, in import sounddevice as sd File "/home/pi/pyv3/env/lib/python3.7/site-packages/sounddevice.py", line 34, in _ffi = _FFI() File "/home/pi/pyv3/env/lib/python3.7/site-packages/cffi/__api.py__", line 48, in __init__ import _cffi_backend as backend ImportError: libffi.so.6: cannot open shared object file: No such file or directory does anyone have a solution
Does this integrate with other Google Home devices (ie. Google Mini)? I want to make a touch screen smart mirror and use a Pi 4 to power it - If I have a Google Mini and Say "Hey Google..." will the devices work out on their own who answers or would both devices answer the trigger word?
This was extremely helpful; however, I seem to have run into a "MissingTokenError" during authentication. I copy the URL and login to the project but the code I am given results in the error instead of saving my credentials. Anyway you can point me in the right direction to fix this?
How to fix this Traceback (most recent call last): File "/home/pi/.local/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/.local/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in from tenacity import retry, stop_after_attempt, retry_if_exception File "/home/pi/.local/lib/python3.9/site-packages/tenacity/__init__.py", line 291 if async: ^ SyntaxError: invalid syntax
Hi Sam, thanks for the great job. I might have done something wrong because I'm stuck when I copy-paste the URL to validate oauth. I'm not able to retrieve the authorization code as I got the message "This site can't be reached" "ERR_CONNECTION_REFUSED" as soon as I click on the last step "Continue". I've been searching the entire web but still no idea... Can you help ? Thanks
Interesting idea. I’m sure it’s possible but it would be a bigger project. You would need to add GPS to the pi and integrate that with the Assistant SDK
yo Sam, i got this weird error wherein it basically says no such option: --headless Really new to this kind of stuff but was intrigued by it so decided to test it out, thanks in advance!
Hey here’s I video I made for that. ruclips.net/video/Gl9HS7-H0mI/видео.html Just change the command in the video to the final command that runs the google assistant
getting error on last step ImportError: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /home/pi/env/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so) i am using raspberry Pi Legacy OS with python version is 3.7.3 i tried solution given by you (added line in .bashrc file ) but still not working plz guide what to do
Hello Sam ,I have a question,my question is, if i want to activate google assistant without opening a terminal and manually typing a command to launch the assistant, what should i do? Could you please help me?
@@alexkey6970Here’s a tutorial on that ruclips.net/video/QdlopCUuXxw/видео.html For your command in the tutorial you need to do three commands separated by semi colons. 1 change directories to your project directory; 2 activate your virtual environment; 3 start the google assistant
@@SamWestbyTech Hello Sam, I just now had time and immediately a question arose. What does it mean to run a virtual environment? I am not a professional in this matter and I will be very grateful if you can help me understand this a little.
hi Sam. Thank you for your video. All is ok until "enter authorization code:". I open the url and the response is: "Authorization Error Error 400: invalid_request You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure. You can let the app developer know that this app doesn't comply with one or more Google validation rules. Please,can you help me? Thank you very much.
This is a common problem if you have published your project in Google Cloud console. Unpublish if that's the case and give it a few minutes, then try auth again.
I actually had this exact problem and I figured out how to fix it. You basically have to go in to your credentials tab in the apis and services site and add an OAuth 2.0 client ID. You then download the JSON file by clicking on the client ID after making it. Then, you just replace the client secret with the new one from your client ID JSON file and you should be able to sign in and get the auth. Hope that wasn’t too confusing and it helps!
2 года назад+3
Hi Sam! Great Video! I made it on R Pi Zero 2W. But I always stuck at the Sample command... It says: warnings.warn("Global variable '%s' in cdef(): for consistency " Error: no such option: --project-id Could you please help me? Thank you!
Weird! I would suggest you delete everything, make sure you’ve upgraded to the latest Raspberry Pi OS, have python 3.5 or higher, and reinstall. My guess is you installed an old version of google assistant
2 года назад
@@SamWestbyTech I do everything as you shows. Download the latest Raspian, and python 3.9.2
Yes you can! Here’s a tutorial on that ruclips.net/video/QdlopCUuXxw/видео.html For your command you need to do three commands separated by semi colons. 1 change directories to your project directory; 2 activate your virtual environment; 3 start the google assistant
Thanks for the tutorial. Could you help me? min 13:14 Traceback (most recent call last): File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in from tenacity import retry, stop_after_attempt, retry_if_exception File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 292 from tenacity.async import AsyncRetrying ^
Please make a video on how to install Raspberry Pi camera in Raspberry Pi 4 . Whenever I try to do so following some RUclips video , my VNC Viewer screen starts to show the black screen " Cannot currently show the desktop " . It shows even if I reinstall VNC . It is only resolved when I format the Raspberry Pi Micro SD card and reinstall Raspberry Pi OS . But I can't install the camera for this . Please help me on this regard 🙏🏻🙏🏻🙏🏻🙏🏻
Sam, Great tutorial. However when I run python -m pip install --upgrade google-assistant-sdk[samples] I get the following Error, I hope you have some insight as to what may be the cause: Collecting grpcio>=1.3.5 Using cached grpcio-1.46.3.tar.gz (21.8 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [14 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-ryc7eep5/grpcio_ee178cb199c841a08d8c3f9ccbf5d69b/setup.py", line 257, in if check_linker_need_libatomic(): File "/tmp/pip-install-ryc7eep5/grpcio_ee178cb199c841a08d8c3f9ccbf5d69b/setup.py", line 213, in check_linker_need_libatomic cpp_test = subprocess.Popen( File "/usr/lib/python3.9/subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.9/subprocess.py", line 1698, in _execute_child and os.path.dirname(executable) File "/usr/lib/python3.9/posixpath.py", line 152, in dirname p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not list [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. Thanks, Mike A.
@@SamWestbyTech I have the same error: (env) pi@rpi3:~ $ googlesamples-assistant-pushtotalk --project-id --device-model-id Traceback (most recent call last): File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 22, in import grpc File "/home/pi/env/lib/python3.9/site-packages/grpc/__init__.py", line 22, in from grpc import _compression File "/home/pi/env/lib/python3.9/site-packages/grpc/_compression.py", line 15, in from grpc._cython import cygrpc ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so) (env) pi@rpi3:~ $ ldd --version ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u2) 2.31 Copyright (C) 2020 Free Software Foundation, Inc. (env) pi@rpi3:~ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
@@SamWestbyTech File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 22, in import grpc File "/home/pi/env/lib/python3.9/site-packages/grpc/__init__.py", line 22, in from grpc import _compression File "/home/pi/env/lib/python3.9/site-packages/grpc/_compression.py", line 15, in from grpc._cython import cygrpc ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)
Hi I get the same error "ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)" pls help...
I change the google assistant voice from console.action.google.com but assistant still speaks the same voice. (changing voice en-male1) Can u help me please?
hi sam great video but i have this problem /home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern') warnings.warn("Global variable '%s' in cdef(): for consistency " Error: no such option: --project-id
This is definitely a Python 3.9/Tenicity issue. Any Tenicity version above 4.10.0 will give you this error. Any version from 4.10.0 and below will give you the async error. Headaches headaches..
Will you help me on this .... Traceback (most recent call last): File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in from tenacity import retry, stop_after_attempt, retry_if_exception File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 292 from tenacity.async import AsyncRetrying
Hello everyone I followed the tutorial and I get this error at the last step. Thank you for your feedback File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in from tenacity import retry, stop_after_attempt, retry_if_exception File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 292 from tenacity.async import AsyncRetrying ^ SyntaxError: invalid syntax
@@SamWestbyTech ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. /home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable 'stderr' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern') warnings.warn("Global variable '%s' in cdef(): for consistency " /home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern') warnings.warn("Global variable '%s' in cdef(): for consistency " Error: no such option: --project-id
@@mahdiabukhaled3555 after i enter pip install -U tenacity it gives error/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable 'stderr' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern') warnings.warn("Global variable '%s' in cdef(): for consistency " /home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern') warnings.warn("Global variable '%s' in cdef(): for consistency " Error: no such option: --project-id
help me Traceback (most recent call last): File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/env/lib/python3.7/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in from tenacity import retry, stop_after_attempt, retry_if_exception File "/home/pi/env/lib/python3.7/site-packages/tenacity/__init__.py", line 292 from tenacity.async import AsyncRetrying ^ SyntaxError: invalid syntax
After all the step and trying to run the sample code I'm getting this error, does anyone know how to solve it? from tenacity.async import AsyncRetrying ^ SyntaxError: invalid syntax
from the bottom of my heart thank you for uploading this video to help me pass my final exam
Mate - you are a superstar. I had been trying to troubleshoot the tostring() issue for some time and was unable to land on the right python documentation. Your video proved extremely valuable. Here, have some claps 👏👏👏
Glad I could help!
@@SamWestbyTech i keep getting "no such option --headless" helllpppp
@@SamWestbyTech also i bypassed that by removing --headless, but now im getting Traceback (most recent call last):
File "/home/admin/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/admin/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 27, in
from google.assistant.embedded.v1alpha1 import embedded_assistant_pb2
File "/home/admin/env/lib/python3.9/site-packages/google/assistant/embedded/v1alpha1/embedded_assistant_pb2.py", line 36, in
_descriptor.EnumValueDescriptor(
File "/home/admin/env/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 796, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
@@SamWestbyTech fixed. just downgraded protobuf
I used a slightly different setup, but it wasn't working. I noticed the error message I was getting in your video, and the solution for it (adding the line to bashrc) and now it works great! So thanks for making this video. It really helped me out.
Hello, I am getting a syntax error, "from tenacity.async import AsyncRetrying" when running sample code
Nice. I managed to make this work!
Maybe next video about how to use traits? I couldn't really do that - assistant says my device isn't available if i try turn on / off.
Can you make a video how to implement snowboy to this project?
I’ll look into it 👍
@@SamWestbyTech yes bro it will be good to know how to implement snowboy to this project
Hi, can you help ? i get this error
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in
from tenacity import retry, stop_after_attempt, retry_if_exception
File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 355
from tenacity.async import AsyncRetrying
^
SyntaxError: invalid syntax
Hi! Gabor found the solution to this. Please run this command in your virtual environment: pip install -U tenacity
needing help with the google console. it is not working for me
Many thank you for your tutorial. It work.
i try to use picovoice wake word engine but it can not access microphone when alexa running. can you show how to config alsa to share microphone between multiple application under terminal ?
Any idea about this issue?
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 22, in
import grpc
File "/home/pi/env/lib/python3.9/site-packages/grpc/__init__.py", line 22, in
from grpc import _compression
File "/home/pi/env/lib/python3.9/site-packages/grpc/_compression.py", line 15, in
from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)
hello! did you solve your problem??? I have same error. Could you give me how you solve your problem? thanks a lot
@@손윤상-d2l Nope, Still didn't solve the problem...
hello! omg me too, I had that problem too
has anyone solved that problem ??
$ source env/bin/activate
$ python3 -m pip install grpcio==1.44.0
$ deactivate
i solved it using these comands
but know i have another problem
File "/home/pi/pyv3/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/pyv3/env/lib/python3.7/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 32, in
from . import (
File "/home/pi/pyv3/env/lib/python3.7/site-packages/googlesamples/assistant/grpc/audio_helpers.py", line 25, in
import sounddevice as sd
File "/home/pi/pyv3/env/lib/python3.7/site-packages/sounddevice.py", line 34, in
_ffi = _FFI()
File "/home/pi/pyv3/env/lib/python3.7/site-packages/cffi/__api.py__", line 48, in __init__
import _cffi_backend as backend
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
does anyone have a solution
Does this integrate with other Google Home devices (ie. Google Mini)? I want to make a touch screen smart mirror and use a Pi 4 to power it - If I have a Google Mini and Say "Hey Google..." will the devices work out on their own who answers or would both devices answer the trigger word?
This was extremely helpful; however, I seem to have run into a "MissingTokenError" during authentication. I copy the URL and login to the project but the code I am given results in the error instead of saving my credentials.
Anyway you can point me in the right direction to fix this?
Is it possible to make the assistant work on "ok google"?
How to fix this
Traceback (most recent call last):
File "/home/pi/.local/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/.local/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in
from tenacity import retry, stop_after_attempt, retry_if_exception
File "/home/pi/.local/lib/python3.9/site-packages/tenacity/__init__.py", line 291
if async:
^
SyntaxError: invalid syntax
I have the same problem. -U tenacity is not working for me. Please help!
Hello, may I know how you were able to change the gender of the voice of your google assistant?
Hi Sam, thanks for the great job. I might have done something wrong because I'm stuck when I copy-paste the URL to validate oauth. I'm not able to retrieve the authorization code as I got the message "This site can't be reached" "ERR_CONNECTION_REFUSED" as soon as I click on the last step "Continue". I've been searching the entire web but still no idea... Can you help ? Thanks
I'm stuck on the same exact issue
Hi sam
Which dawnload image raspberry supports
Hi!
Can we use google assistant for navigation using raspberry pi 4? can it give directions when navigating to a certain place?
Interesting idea. I’m sure it’s possible but it would be a bigger project. You would need to add GPS to the pi and integrate that with the Assistant SDK
yo Sam, i got this weird error wherein it basically says no such option: --headless
Really new to this kind of stuff but was intrigued by it so decided to test it out, thanks in advance!
remove "--headless" and it works
@@aab142 thank you
@@aab142 remove "--headless" and it works then, i got this .. webbrowser.Error: could not locate runnable browser
Hey, what codes will I need to add for it to start on boot?
Hope to hear from you soon.
Hey here’s I video I made for that. ruclips.net/video/Gl9HS7-H0mI/видео.html
Just change the command in the video to the final command that runs the google assistant
idk why but you give me mr.robot vibes
getting error on last step ImportError: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /home/pi/env/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)
i am using raspberry Pi Legacy OS with python version is 3.7.3
i tried solution given by you (added line in .bashrc file ) but still not working
plz guide what to do
this video verry good can you try a chat gpt on raspberry pi
Can we add wake word also? Like hey google...
Can we change the wakeword? Please make a video
There is a way with a package called snowball. I’ll look into making a tutorial
Thanks for your rply.Could you make it fast bcz our final projcet submission is getting closer. 🙏
J tried to do the same thing right now but failed to get the authentication code😢
Invalid request?
Hello Sam ,I have a question,my question is, if i want to activate google assistant without opening a terminal and manually typing a command to launch the assistant, what should i do? Could you please help me?
Are you looking to launch the assistant when your pi starts up?
@@SamWestbyTech yes
@@alexkey6970Here’s a tutorial on that
ruclips.net/video/QdlopCUuXxw/видео.html
For your command in the tutorial you need to do three commands separated by semi colons.
1 change directories to your project directory; 2 activate your virtual environment; 3 start the google assistant
@@SamWestbyTech thank you very much!!
@@SamWestbyTech Hello Sam, I just now had time and immediately a question arose. What does it mean to run a virtual environment? I am not a professional in this matter and I will be very grateful if you can help me understand this a little.
hi Sam. Thank you for your video. All is ok until "enter authorization code:". I open the url and the response is: "Authorization Error
Error 400: invalid_request
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.
You can let the app developer know that this app doesn't comply with one or more Google validation rules.
Please,can you help me? Thank you very much.
@En Manalo I Know. I hope Sam know the soution and answer to us.
an answer to this issue would be great
@@jimmyprice2745 Seems there is not solution...
This is a common problem if you have published your project in Google Cloud console. Unpublish if that's the case and give it a few minutes, then try auth again.
I actually had this exact problem and I figured out how to fix it. You basically have to go in to your credentials tab in the apis and services site and add an OAuth 2.0 client ID. You then download the JSON file by clicking on the client ID after making it. Then, you just replace the client secret with the new one from your client ID JSON file and you should be able to sign in and get the auth. Hope that wasn’t too confusing and it helps!
Hi Sam! Great Video! I made it on R Pi Zero 2W. But I always stuck at the Sample command... It says:
warnings.warn("Global variable '%s' in cdef(): for consistency "
Error: no such option: --project-id
Could you please help me?
Thank you!
Weird! I would suggest you delete everything, make sure you’ve upgraded to the latest Raspberry Pi OS, have python 3.5 or higher, and reinstall. My guess is you installed an old version of google assistant
@@SamWestbyTech I do everything as you shows. Download the latest Raspian, and python 3.9.2
@@SamWestbyTech I got the same error too. I do everything as you shows. --Raspberry Pi Zero W
Wrong command, I think.
it's same with me, but now it works
@@RetroGen may I know the changes we need to do inorder to make it work
Can i use my raspbeery pi 2 model b?
Can you make it auto starts in first boot?
Yes you can! Here’s a tutorial on that
ruclips.net/video/QdlopCUuXxw/видео.html
For your command you need to do three commands separated by semi colons.
1 change directories to your project directory; 2 activate your virtual environment; 3 start the google assistant
can you add it to the home app
I am unable to download my credentials how can i fix this?
Have you been able to download it . I am experiencing this same issue.
Thanks for the tutorial.
Could you help me?
min 13:14
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in
from tenacity import retry, stop_after_attempt, retry_if_exception
File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 292
from tenacity.async import AsyncRetrying
^
I have the same problem. -U tenacity is not working for me. Please help!
While setting credentials in console it is not working
I had an error in -- headless when i try to generate credentials plz help
Just remove the --headless
Please make a video on how to install Raspberry Pi camera in Raspberry Pi 4 .
Whenever I try to do so following some RUclips video , my VNC Viewer screen starts to show the black screen " Cannot currently show the desktop " . It shows even if I reinstall VNC . It is only resolved when I format the Raspberry Pi Micro SD card and reinstall Raspberry Pi OS .
But I can't install the camera for this .
Please help me on this regard 🙏🏻🙏🏻🙏🏻🙏🏻
can it connect to google home android app
Its possible to no depend for the enter comand?
Yes! You can implement a voice to text function that does this
@@SamWestbyTech Do you have this function? or any documentation, to know how to do this please.
@@sistemasembebidos2783 I do not but I might make a tutorial on this in the future
error: no such option: --headless plzplz help me
Sam,
Great tutorial.
However when I run
python -m pip install --upgrade google-assistant-sdk[samples]
I get the following Error, I hope you have some insight as to what may be the cause:
Collecting grpcio>=1.3.5
Using cached grpcio-1.46.3.tar.gz (21.8 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-ryc7eep5/grpcio_ee178cb199c841a08d8c3f9ccbf5d69b/setup.py", line 257, in
if check_linker_need_libatomic():
File "/tmp/pip-install-ryc7eep5/grpcio_ee178cb199c841a08d8c3f9ccbf5d69b/setup.py", line 213, in check_linker_need_libatomic
cpp_test = subprocess.Popen(
File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1698, in _execute_child
and os.path.dirname(executable)
File "/usr/lib/python3.9/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not list
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Thanks,
Mike A.
same error
run the following line and then rerun the line causing this error
pip install grpcio==1.26.0rc1
GLIBC 2.33 NOT FOUND, HOW I FIX IT?PLS HELP
It would be helpful if you posted the full error text
@@SamWestbyTech I have the same error:
(env) pi@rpi3:~ $ googlesamples-assistant-pushtotalk --project-id --device-model-id
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 22, in
import grpc
File "/home/pi/env/lib/python3.9/site-packages/grpc/__init__.py", line 22, in
from grpc import _compression
File "/home/pi/env/lib/python3.9/site-packages/grpc/_compression.py", line 15, in
from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)
(env) pi@rpi3:~ $ ldd --version
ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u2) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
(env) pi@rpi3:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
@@SamWestbyTech File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 22, in
import grpc
File "/home/pi/env/lib/python3.9/site-packages/grpc/__init__.py", line 22, in
from grpc import _compression
File "/home/pi/env/lib/python3.9/site-packages/grpc/_compression.py", line 15, in
from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)
Hi I get the same error "ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)"
pls help...
does not work AUTHORISATION ERROR
Yep
I need a solution so badly
I change the google assistant voice from console.action.google.com but assistant still speaks the same voice. (changing voice en-male1) Can u help me please?
hi.can we talk in persian?
FAKE!! It says authorization error. People are saying to unpublish the app, but I didnt even publish it. Didnt work, dont waste your time!!!!!!!!!
hi sam great video but i have this problem
/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
warnings.warn("Global variable '%s' in cdef(): for consistency "
Error: no such option: --project-id
Same
I talked to some others with this error and haven’t been able to figure it out. If anyone figured it out please let me know
Same issue
same issue 😢 have anyone fixed this?
This is definitely a Python 3.9/Tenicity issue. Any Tenicity version above 4.10.0 will give you this error. Any version from 4.10.0 and below will give you the async error. Headaches headaches..
Will you help me on this ....
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in
from tenacity import retry, stop_after_attempt, retry_if_exception
File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 292
from tenacity.async import AsyncRetrying
Hey please help me
Hello everyone I followed the tutorial and I get this error at the last step.
Thank you for your feedback
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in
from tenacity import retry, stop_after_attempt, retry_if_exception
File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 292
from tenacity.async import AsyncRetrying
^
SyntaxError: invalid syntax
Have the same here... Any solution?
Hi! Gabor found the solution to this. Please run this command in your virtual environment: pip install -U tenacity
@@SamWestbyTech
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable 'stderr' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
warnings.warn("Global variable '%s' in cdef(): for consistency "
/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
warnings.warn("Global variable '%s' in cdef(): for consistency "
Error: no such option: --project-id
@@SamWestbyTech bro it still doesn't work
@@mahdiabukhaled3555 after i enter pip install -U tenacity it gives error/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable 'stderr' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
warnings.warn("Global variable '%s' in cdef(): for consistency "
/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
warnings.warn("Global variable '%s' in cdef(): for consistency "
Error: no such option: --project-id
help me
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.7/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in
from tenacity import retry, stop_after_attempt, retry_if_exception
File "/home/pi/env/lib/python3.7/site-packages/tenacity/__init__.py", line 292
from tenacity.async import AsyncRetrying
^
SyntaxError: invalid syntax
After all the step and trying to run the sample code I'm getting this error, does anyone know how to solve it?
from tenacity.async import AsyncRetrying
^
SyntaxError: invalid syntax
Having the same problem rightnow, does anyone have a solution?
oh found it, run this command in virtual environment: pip install -U tenacity