AttributeError: '_SingleThreadedRendezvous' object has no attribute 'add_done_callback'

176 views
Skip to first unread message

Dihan Cheng

unread,
Jul 24, 2021, 4:29:49 AM7/24/21
to AdWords API and Google Ads API Forum
Hello support,

I get the following error when submitting a campaign report pull query from AWS glue. It works well locally though.

AttributeError: '_SingleThreadedRendezvous' object has no attribute 'add_done_callback'

It's just a simple campaign query with basic resource fields selected.

any suggestions?

thanks,

Dihan

Dihan Cheng

unread,
Jul 24, 2021, 4:31:04 AM7/24/21
to AdWords API and Google Ads API Forum
One difference between my local environment and server env is my local uses python 3.8, but server uses python 3.7

Google Ads API Forum Advisor

unread,
Jul 26, 2021, 3:08:02 PM7/26/21
to dihan...@spotter.la, adwor...@googlegroups.com
Hi Dihan,

I found a link related to your error: https://github.com/googleads/google-ads-python/issues/303

If this doesn't help to resolve the issue, then please send the following details using 'Reply privately to author' option:
  1. account id
  2. user email address
  3. Ads API request and a complete error response
Thanks,
Google Logo
Lakshmi Prathipati
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2JDPEQ:ref

Dihan Cheng

unread,
Jul 26, 2021, 4:04:40 PM7/26/21
to AdWords API and Google Ads API Forum
Hello Lakshmi, 

  Thanks for finding the link and it's helpful, but the solution given in the link is using grpcio==1.33.2, however in my case I'm not able to use 1.33.2 because it will cause other issues which I don't find a solution also. So I'm wondering based on my current lib setttings if there is a solution.

google-ads==13.0.0,
grpcio==1.27.2, // can't upgrade to 1.33.2
psycopg2-binary==2.8.6,
google-api-core==1.17.0

thanks,

Dihan

Dihan Cheng

unread,
Jul 26, 2021, 7:06:05 PM7/26/21
to AdWords API and Google Ads API Forum
with many hours of trial and error, I have to downgrade grpcio==1.20 to make it work.

hope there is a better solution!

Google Ads API Forum Advisor

unread,
Jul 28, 2021, 2:00:15 AM7/28/21
to dihan...@spotter.la, adwor...@googlegroups.com
Hi Dihan,

We're glad to know that your issue was resolved.

Regarding the better solution that you mentioned, and since this is more of a Python client library setup matter, we recommend that you reach out as well to the client library owners via this link, as they are the more appropriate team to provide guidance on issues with client library setup.

I hope this further helps.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2JDPEQ:ref
Reply all
Reply to author
Forward
0 new messages