googleads / googleads/googleads-python-lib

[Error] Module installed in Virtualenv

Open
#296 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P2
Dominant language
Python
Stars
749
Forks
967
PR merge metrics
No merged PRs in 30d

Description

Hi, I have the below warning when I execute my script:

'No handlers could be found for logger "googleads.common"

Screen Grab of this: https://photos.app.goo.gl/PPxhYbYiM3r3JmRMA
I had installed the googleads library in a virtual environment; however, my code is in the base environment. The yaml file is also in the base environment and this warning comes up when I call this:

adwords_client = adwords.AdWordsClient.LoadFromStorage('\the\correct\path\adwords-api.yml')

Full code is available here: https://photos.app.goo.gl/iDZu2aupgyK8CXUh7

I have tried the following:

  • using the shebang of both my base python and virtualenv python.
  • if the libraries are installed on the base path then there is no such warning (tried this in both Windows and Linux os; however, not on the machine where this error is coming up).
  • I think this is just a warning since I could see data being uploaded into the AdWords userlist.

Could you guide me on how to fix this, please? I'm not an expert with Python, so if you could break it down, it would help me a lot.

Thanks,
Enoch

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the Python interpreter used to install googleads with the interpreter running the script, then inspect the googleads.common logger around the AdWordsClient.LoadFromStorage call. The linked screenshots and full code may provide additional context. Done means identifying whether the warning is expected and documenting a reproducible fix for the virtualenv/base-environment setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.