Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'EmbeddedAssistantStub' (currently) Out of order? & "bartender-apiai-webhook"? & embedded sdk? #20

Open
NatiDaddy opened this issue Apr 10, 2019 · 2 comments

Comments

@NatiDaddy
Copy link

I already have a system built running off of arduino mega, LCD, and rotor encoder and wanted to change it to this. I'm running 8 channel relay and have better peristaltic pumps.
This will be for my notes mainly so I will update. Any advice and help is welcome but this place seems pretty much dead.

After weeks of multiple failures and hitting walls I eventually made it through programming the RPi (steps 21-26).

Mixer Programming:

I had to start with a section of:
Step 24 (due to no option to register device when following order(this also gave me
buckets and a better flow through the steps)
Follow steps in Getting Started with the Raspberry Pi and Python (click).
-Register the Device Model
-Use the registration UI in the Actions Console to register a device model.
-Click the REGISTER MODEL button
-add/import (add)
-"Register Model" at bottom center

I then restarted at step 21making sure I followed all links and through step 24
(directly connected to RPi w/touch screen keyboard and mouse already loaded with Raspian (step 23.10(do noobs so you can "shift" at start to reset and retry))).

Step 22: Create Google Cloud Function
- When I "created a function" I named it to match the name in package.json that is
compressed with index.js.
-Fill out the form with the following info:
Name: bartender-apiai-webhook

Step 24: link click
-Try a different USB for mic if you're getting a full list (and not just 1) when configuring
.asoundrc
"hw:#,#" is the proper form.

Step 26: Clone code repository on RPi and move files into correct location
26.4:
-If you're reading this, please read the others that have had issues. I've done so many different bartenders I'm starting to mix them all together. I could've sworn I had a "embedded-python folder" in home/pi ("~/") at one point.
Copy files into embedded assistant directory
In (env) mode:
$ cp -r mocktailsmixer/software/rpi /home/pi/env/lib/python3.5/site-packages
$ cd ~/env/lib/python3.5/site-packages/googlesamples
$ python -m googlesamples.rpi.auth_helpers --client-secrets /home/pi/client_secret_############-********.apps.googleusercontent.com
$ python -m googlesamples.rpi

It's working as a google assistant currently. Now I'm figuring out how the 8 ch relay should be hooked up.....

@NatiDaddy
Copy link
Author

NatiDaddy commented Apr 11, 2019

Results for step 28:
(env) pi@raspberrypi:/mocktailsmixer-master $ cd /home/pi/env/lib/python3.5/site-packages/
(env) pi@raspberrypi:
/env/lib/python3.5/site-packages $ python -m googlesamples.rpi
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/pi/env/lib/python3.5/site-packages/googlesamples/rpi/main.py", line 21, in
from google.cloud import pubsub
File "/home/pi/env/lib/python3.5/site-packages/google/cloud/pubsub.py", line 19, in
from google.cloud.pubsub_v1 import PublisherClient
File "/home/pi/env/lib/python3.5/site-packages/google/cloud/pubsub_v1/init.py", line 17, in
from google.cloud.pubsub_v1 import types
File "/home/pi/env/lib/python3.5/site-packages/google/cloud/pubsub_v1/types.py", line 20, in
from google.iam.v1 import iam_policy_pb2
File "/home/pi/env/lib/python3.5/site-packages/google/iam/v1/iam_policy_pb2.py", line 17, in
from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2
File "/home/pi/env/lib/python3.5/site-packages/google/iam/v1/policy_pb2.py", line 366, in
from grpc.beta import implementations as beta_implementations
File "/home/pi/env/lib/python3.5/site-packages/grpc/beta/implementations.py", line 22, in
from grpc import _auth
File "/home/pi/env/lib/python3.5/site-packages/grpc/_auth.py", line 17, in
from concurrent import futures
File "/home/pi/env/lib/python3.5/site-packages/concurrent/futures/init.py", line 8, in
from concurrent.futures._base import (FIRST_COMPLETED,
File "/home/pi/env/lib/python3.5/site-packages/concurrent/futures/_base.py", line 381
raise exception_type, self._exception, self._traceback
^
SyntaxError: invalid syntax

@NatiDaddy
Copy link
Author

NatiDaddy commented Apr 12, 2019

Update:
The last error i ended up just making them 3 raises. The comma was the SyntaxError.

Now:

AttributeError: module 'google.assistant.embedded.v1alpha1.embedded_assistant_pb2' has no attribute 'EmbeddedAssistantStub'

@NatiDaddy NatiDaddy changed the title Out of order? & "bartender-apiai-webhook"? & embedded sdk? 'EmbeddedAssistantStub' (currently) Out of order? & "bartender-apiai-webhook"? & embedded sdk? Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant