Open alasdair-fowler-deliveroo opened 2 months ago
Bumping this. I am hitting this same behavior. Same error on AWS only when upgrading to google-ads > 23.0.0, local is fine.
Hello, I am getting the same error after upgrading google-ads to 25.0.1 version on AWS( ModuleNotFoundError: No module named 'google'). any suggestions to solve it ?
@alasdair-fowler-deliveroo which version of Python is being run in AWS when you receive this error?
I know I wasn't asked... but I personally tried deploying to AWS using Python 3.8, 3.9, 3.10, 3.11. All exhibited the same error behavior.
We're using 3.9
I ended up resolving it by finding that in our deployment pipeline we were removing .dist-info
files. However, IMO this shouldn't have been necessary
Describe the bug: Since upgrading library version (22.1.0 to 25.0.0) we get a
ModuleNotFoundError
in AWS once google-ads is deployed, but not locally. We didn't make any code changes and our code used to work, and works with the same library version locally.I think it may be that this change was made here in PR 830 (see below). Why was that error handling there, and why was it removed? Can it be re-added?
Old:
New:
Steps to Reproduce: In unknown circumstances,
from google.ads.googleads import client
causes aModuleNotFoundError
Expected behavior:
from google.ads.googleads import client
works!Client library version and API version: Client library version: 25.0.0 Google Ads API version: 17
Request/Response Logs: N/A
Anything else we should know about your project / environment: