Install Google Assistant on a Raspberry Pi

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

Комментарии • 146

  • @yadominique3249
    @yadominique3249 2 года назад +3

    from the bottom of my heart thank you for uploading this video to help me pass my final exam

  • @vj8066
    @vj8066 2 года назад +2

    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
      @SamWestbyTech  Год назад

      Glad I could help!

    • @WindowsXP2600
      @WindowsXP2600 Год назад

      @@SamWestbyTech i keep getting "no such option --headless" helllpppp

    • @WindowsXP2600
      @WindowsXP2600 Год назад

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

    • @WindowsXP2600
      @WindowsXP2600 Год назад

      @@SamWestbyTech fixed. just downgraded protobuf

  • @ustoopia
    @ustoopia 2 года назад

    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.

  • @getchethanbr
    @getchethanbr 2 года назад +4

    Hello, I am getting a syntax error, "from tenacity.async import AsyncRetrying" when running sample code

  • @tomaszmadera7408
    @tomaszmadera7408 2 года назад

    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.

  • @jakub7012
    @jakub7012 2 года назад +3

    Can you make a video how to implement snowboy to this project?

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      I’ll look into it 👍

    • @syedhyder5630
      @syedhyder5630 2 года назад

      @@SamWestbyTech yes bro it will be good to know how to implement snowboy to this project

  • @trafikarizalari
    @trafikarizalari 2 года назад +4

    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

    • @SamWestbyTech
      @SamWestbyTech  2 года назад +2

      Hi! Gabor found the solution to this. Please run this command in your virtual environment: pip install -U tenacity

  • @juliancanfaulk5070
    @juliancanfaulk5070 8 месяцев назад +1

    needing help with the google console. it is not working for me

  • @phuditngarmsaard720
    @phuditngarmsaard720 Год назад

    Many thank you for your tutorial. It work.

  • @best3140
    @best3140 2 года назад

    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 ?

  • @ssptrgcell4624
    @ssptrgcell4624 2 года назад +4

    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)

    • @손윤상-d2l
      @손윤상-d2l 2 года назад

      hello! did you solve your problem??? I have same error. Could you give me how you solve your problem? thanks a lot

    • @ssptrgcell4624
      @ssptrgcell4624 2 года назад

      @@손윤상-d2l Nope, Still didn't solve the problem...

    • @haeuun_
      @haeuun_ 2 года назад +1

      hello! omg me too, I had that problem too

    • @mahdiabukhaled3555
      @mahdiabukhaled3555 2 года назад

      has anyone solved that problem ??

    • @mahdiabukhaled3555
      @mahdiabukhaled3555 2 года назад

      $ 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

  • @SKiZ416
    @SKiZ416 2 года назад

    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?

  • @brittanyskaggs3479
    @brittanyskaggs3479 2 года назад

    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?

  • @Korzyk
    @Korzyk 2 года назад +1

    Is it possible to make the assistant work on "ok google"?

  • @avinashj2411
    @avinashj2411 Год назад +3

    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

    • @johanneshaenssler8274
      @johanneshaenssler8274 Год назад

      I have the same problem. -U tenacity is not working for me. Please help!

  • @patrickmediodia1952
    @patrickmediodia1952 Год назад

    Hello, may I know how you were able to change the gender of the voice of your google assistant?

  • @peteturcan825
    @peteturcan825 Год назад

    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

    • @mforlights
      @mforlights 3 месяца назад

      I'm stuck on the same exact issue

  • @abdulla3165
    @abdulla3165 2 года назад

    Hi sam
    Which dawnload image raspberry supports

  • @aldrichgarcia1814
    @aldrichgarcia1814 2 года назад

    Hi!
    Can we use google assistant for navigation using raspberry pi 4? can it give directions when navigating to a certain place?

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      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

  • @xertifiedthicc
    @xertifiedthicc Год назад +1

    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!

    • @aab142
      @aab142 Год назад

      remove "--headless" and it works

    • @g.lolakis2978
      @g.lolakis2978 Год назад

      @@aab142 thank you

    • @cvc5563
      @cvc5563 Год назад

      @@aab142 remove "--headless" and it works then, i got this .. webbrowser.Error: could not locate runnable browser

  • @alangeorge2839
    @alangeorge2839 2 года назад

    Hey, what codes will I need to add for it to start on boot?
    Hope to hear from you soon.

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      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

  • @orhansenglish
    @orhansenglish Год назад

    idk why but you give me mr.robot vibes

  • @MSDGurukul
    @MSDGurukul 2 года назад +1

    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

  • @BenYener06
    @BenYener06 Год назад +1

    this video verry good can you try a chat gpt on raspberry pi

  • @muhammedaneesk.a4848
    @muhammedaneesk.a4848 2 года назад

    Can we add wake word also? Like hey google...

  • @mathewtomy6129
    @mathewtomy6129 2 года назад +1

    Can we change the wakeword? Please make a video

    • @SamWestbyTech
      @SamWestbyTech  2 года назад +1

      There is a way with a package called snowball. I’ll look into making a tutorial

    • @mathewtomy6129
      @mathewtomy6129 2 года назад +1

      Thanks for your rply.Could you make it fast bcz our final projcet submission is getting closer. 🙏

  • @MTEX-tr6vd
    @MTEX-tr6vd 4 месяца назад +1

    J tried to do the same thing right now but failed to get the authentication code😢

    • @xpectz
      @xpectz Месяц назад

      Invalid request?

  • @alexkey6970
    @alexkey6970 2 года назад

    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?

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      Are you looking to launch the assistant when your pi starts up?

    • @alexkey6970
      @alexkey6970 2 года назад

      @@SamWestbyTech yes

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

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

    • @alexkey6970
      @alexkey6970 2 года назад

      @@SamWestbyTech thank you very much!!

    • @alexkey6970
      @alexkey6970 2 года назад

      @@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.

  • @federicomilano5272
    @federicomilano5272 2 года назад +1

    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.

    • @federicomilano5272
      @federicomilano5272 2 года назад

      @En Manalo I Know. I hope Sam know the soution and answer to us.

    • @jimmyprice2745
      @jimmyprice2745 2 года назад

      an answer to this issue would be great

    • @federicomilano5272
      @federicomilano5272 2 года назад

      @@jimmyprice2745 Seems there is not solution...

    • @HootieStyleChannel
      @HootieStyleChannel 2 года назад

      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.

    • @sp_stormz8196
      @sp_stormz8196 2 года назад +1

      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!

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      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

    • @cay.tabagi
      @cay.tabagi 2 года назад

      @@SamWestbyTech I got the same error too. I do everything as you shows. --Raspberry Pi Zero W

    • @RetroGen
      @RetroGen 2 года назад

      Wrong command, I think.
      it's same with me, but now it works

    • @syedhyder5630
      @syedhyder5630 2 года назад

      @@RetroGen may I know the changes we need to do inorder to make it work

  • @김요한-q7m
    @김요한-q7m 2 года назад

    Can i use my raspbeery pi 2 model b?

  • @RetroGen
    @RetroGen 2 года назад

    Can you make it auto starts in first boot?

    • @SamWestbyTech
      @SamWestbyTech  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

  • @kax2137
    @kax2137 2 года назад

    can you add it to the home app

  • @TomSteentjes
    @TomSteentjes Год назад

    I am unable to download my credentials how can i fix this?

    • @GHizmoHub
      @GHizmoHub Год назад

      Have you been able to download it . I am experiencing this same issue.

  • @msvguillermo
    @msvguillermo 2 года назад +4

    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
    ^

    • @johanneshaenssler8274
      @johanneshaenssler8274 Год назад

      I have the same problem. -U tenacity is not working for me. Please help!

  • @ramiyagopal173
    @ramiyagopal173 Год назад

    While setting credentials in console it is not working

  • @farahkhalil6846
    @farahkhalil6846 Год назад

    I had an error in -- headless when i try to generate credentials plz help

  • @zetazetazoomzoom
    @zetazetazoomzoom 2 года назад

    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 🙏🏻🙏🏻🙏🏻🙏🏻

  • @ultimategamerximhindi314
    @ultimategamerximhindi314 2 года назад

    can it connect to google home android app

  • @sistemasembebidos2783
    @sistemasembebidos2783 2 года назад

    Its possible to no depend for the enter comand?

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      Yes! You can implement a voice to text function that does this

    • @sistemasembebidos2783
      @sistemasembebidos2783 2 года назад

      @@SamWestbyTech Do you have this function? or any documentation, to know how to do this please.

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      @@sistemasembebidos2783 I do not but I might make a tutorial on this in the future

  • @krilix.i
    @krilix.i 9 месяцев назад

    error: no such option: --headless plzplz help me

  • @michaelm.anderson8709
    @michaelm.anderson8709 2 года назад +1

    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.

    • @matajevenr.2137
      @matajevenr.2137 2 года назад

      same error

    • @audreyvalentine4889
      @audreyvalentine4889 2 года назад

      run the following line and then rerun the line causing this error
      pip install grpcio==1.26.0rc1

  • @muhammedsalahyahiya5615
    @muhammedsalahyahiya5615 2 года назад

    GLIBC 2.33 NOT FOUND, HOW I FIX IT?PLS HELP

    • @SamWestbyTech
      @SamWestbyTech  2 года назад +1

      It would be helpful if you posted the full error text

    • @furtivoAr
      @furtivoAr 2 года назад

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

    • @haeuun_
      @haeuun_ 2 года назад

      @@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)

    • @nikosagiotis4198
      @nikosagiotis4198 2 года назад

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

  • @handsomewright7776
    @handsomewright7776 2 года назад

    does not work AUTHORISATION ERROR

  • @farahkhalil6846
    @farahkhalil6846 Год назад

    I need a solution so badly

  • @benrobotx
    @benrobotx 2 года назад

    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?

  • @mostafaaghahaji1783
    @mostafaaghahaji1783 Год назад

    hi.can we talk in persian?

  • @Dillixx
    @Dillixx 2 года назад +1

    FAKE!! It says authorization error. People are saying to unpublish the app, but I didnt even publish it. Didnt work, dont waste your time!!!!!!!!!

  • @marcogreco9089
    @marcogreco9089 2 года назад +1

    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

    • @dhairyasheelmane2984
      @dhairyasheelmane2984 2 года назад +2

      Same

    • @SamWestbyTech
      @SamWestbyTech  2 года назад

      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

    • @domnick356
      @domnick356 2 года назад

      Same issue

    • @EdwardHunterMX
      @EdwardHunterMX 2 года назад +1

      same issue 😢 have anyone fixed this?

    • @HootieStyleChannel
      @HootieStyleChannel 2 года назад +1

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

  • @sourabhsarawade4908
    @sourabhsarawade4908 2 года назад +1

    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

  • @Alexandre-yj6zt
    @Alexandre-yj6zt 2 года назад +1

    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

    •  2 года назад

      Have the same here... Any solution?

    • @SamWestbyTech
      @SamWestbyTech  2 года назад +3

      Hi! Gabor found the solution to this. Please run this command in your virtual environment: pip install -U tenacity

    • @VikashSingh-bt8jz
      @VikashSingh-bt8jz 2 года назад

      @@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
      @mahdiabukhaled3555 2 года назад +1

      @@SamWestbyTech bro it still doesn't work

    • @yadominique3249
      @yadominique3249 2 года назад +1

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

  • @abdulla3165
    @abdulla3165 2 года назад +2

    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

  • @albertogarciafigueroamungu7046
    @albertogarciafigueroamungu7046 2 года назад

    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

    • @jilljessurun2897
      @jilljessurun2897 2 года назад

      Having the same problem rightnow, does anyone have a solution?

    • @jilljessurun2897
      @jilljessurun2897 2 года назад

      oh found it, run this command in virtual environment: pip install -U tenacity