question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"module_stderr": "No handlers could be found for logger

See original GitHub issue

Can you please check this error and tell me how to fix this? Thank you!

My ansible-host file:

[all:vars]
ansible_python_interpreter=/Library/Frameworks/Python.framework/Versions/2.7/bin/python


[Juniper]
core001 ansible_host=cor-001.aaaa.com

and my playbook:

---
- name: simpletest
  hosts: Juniper
  connection: local
  gather_facts: no
  roles:
    - Juniper.junos
  tasks:
    - debug:
        msg: "{{ ansible_host }}"
    - junos_get_facts:
        host:  "{{ ansible_host }}"
        user: user
        passwd: password

But I am getting this error:

fatal: [core001]: FAILED! => {
    "changed": false, 
    "module_stderr": "No handlers could be found for logger \"ncclient.transport.session\"\nTraceback (most recent call last):\n  File 
\"/var/folders/tj/hycb0kl92xzfv9cmnqyhky9d_63sjc/T/ansible_8Zs8fS/ansible_module_junos_get_fact
s.py\", line 383, in <module>\n    main()\n  File 
\"/var/folders/tj/hycb0kl92xzfv9cmnqyhky9d_63sjc/T/ansible_8Zs8fS/ansible_module_junos_get_fact
s.py\", line 344, in main\n    facts = get_facts_dict(junos_module)\n  File 
\"/var/folders/tj/hycb0kl92xzfv9cmnqyhky9d_63sjc/T/ansible_8Zs8fS/ansible_module_junos_get_fact
s.py\", line 250, in get_facts_dict\n    facts['version_info'] = dict(facts['version_info'])\nTypeError: 'NoneType' object is not iterable\n", 
    "module_stdout": "", 
    "msg": "MODULE FAILURE", 
    "rc": 1

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
farhadkamcommented, May 7, 2018

Hi Nitin, Can you please advise what to do to fix this as per your earlier email?(what should I update and Any links how to do it?)

Regards, Farhad

On 7 May 2018, at 4:13 pm, Nitin Kr <notifications@github.commailto:notifications@github.com> wrote:

[External Email]

Closing the issue, as the fix gone in PyEZ. Will be released in next version. For now can be installed from git.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Juniper_ansible-2Djunos-2Dstdlib_issues_360-23issuecomment-2D386967318&d=DwMCaQ&c=Zok6nrOF6Fe0JtVEqKh3FEeUbToa1PtNBZf6G01cvEQ&r=S4HxSIKfKaLNfwoNNLQ4YZMD8wZ10DemnxHhiPMHiMQ&m=igYY1XMuJjzwC0UPp8AEc9VY5KOBYTCP0qBdeb53E5k&s=njGGmy9zwQncVBlFqT1F1fDU9B4wQB8QgbUMqi0bCEE&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AkwjmWxViXQHxj0z5oJYwXPmMmjojROZks5tv-2DYFgaJpZM4Tn0yZ&d=DwMCaQ&c=Zok6nrOF6Fe0JtVEqKh3FEeUbToa1PtNBZf6G01cvEQ&r=S4HxSIKfKaLNfwoNNLQ4YZMD8wZ10DemnxHhiPMHiMQ&m=igYY1XMuJjzwC0UPp8AEc9VY5KOBYTCP0qBdeb53E5k&s=9jug5sq9e458qbXUJX-O7gCl001nc2c6q8VLjWO1XbM&e=.

0reactions
vnitinvcommented, May 7, 2018

Closing the issue, as the fix gone in PyEZ. Will be released in next version. For now can be installed from git.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No handlers could be found for logger - Stack Overflow
I was trying logging in python and I came across No handlers could be found for logger error while trying to print some...
Read more >
"No handlers could be found for logger" ncclient.transport ...
Hi there, I would like to get system information about my juniper equipment while using ansible (2.4.2) and juniper.junos role. I can assume...
Read more >
Automating Infrastructure Deployments in the Cloud with ...
How Ansible can be used to implement Infrastructure as Code (IaC) ... "module_stderr": "No handlers could be found for logger ...
Read more >
1471017 – Ansible DNF is not able to install package groups
Description of problem: In Fedora 26 it is not possible to install DNF Package ... "failed": true, "module_stderr": "No handlers could be found...
Read more >
PYTHON : No handlers could be found for logger - YouTube
PYTHON : No handlers could be found for logger [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] PYTHON : No ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found