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

module 'google.cloud.pubsub' has no attribute 'Client' #11

Open
jonoj87 opened this issue Sep 5, 2017 · 8 comments
Open

module 'google.cloud.pubsub' has no attribute 'Client' #11

jonoj87 opened this issue Sep 5, 2017 · 8 comments

Comments

@jonoj87
Copy link

jonoj87 commented Sep 5, 2017

I've noticed that the rpi code does not run successfully due to the following error:
module 'google.cloud.pubsub' has no attribute 'Client'

After doing some digging I believe its because the google.cloud.pubsub package version 0.28 has changed the objects. Currently I'm going to try and downgrade to version 0.27 and see.

Could you confirm the working versions for all the libraries? We are getting other errors and suspect it could be because of different versions of code.

@phuclm
Copy link

phuclm commented Nov 14, 2017

you can change this attribute name from 'Client' to 'SubscriberClient'. But it still not work with "unexpected keyword 'project'"

@vks1947
Copy link

vks1947 commented Jan 3, 2018

hi Jonoj87, I am getting the same error. module 'google.cloud.pubsub' has no attribute 'Client'. were you able to resolve it ?

@jonoj87
Copy link
Author

jonoj87 commented Jan 3, 2018 via email

@vks1947
Copy link

vks1947 commented Jan 4, 2018

Thanks for your prompt reply Jonathan. I think google has made quite a lot of changes to thier APIs and directory structures..

Cheers.

@jonoj87
Copy link
Author

jonoj87 commented Jan 4, 2018 via email

@vks1947
Copy link

vks1947 commented Jan 4, 2018

great Jonathan.I really appreciate your help! i am hoping to complete it by tomorrow

I had tough time on step 26. the new API don't have the following path. but after lot of reading and tweaks made it through.

Copy files into embedded assistant directory: $ cp -r mocktailsmixer/software/rpi embedded-assistant-sdk-python/googlesamples/

@vks1947
Copy link

vks1947 commented Jan 7, 2018

Hi Jonathan,

Hope you are doing well ! . I wanted to know if you got any audio related errors..

I get the following run time errors. when I request for a drink. Asking for weather works fine no issues.

File "/home/pi/env/lib/python3.4/site-packages/sounddevice.py", line 2563, in _check
raise PortAudioError(errormsg, err)
sounddevice.PortAudioError: Can't write to an input only stream [PaErrorCode -9974]

@jonoj87
Copy link
Author

jonoj87 commented Jan 7, 2018 via email

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

3 participants