No handlers could be found for logger "__main__"
joegig opened this issue · 1 comments
I am using tacacs_plus-2.6 and Python 2.7.5 and get above handlers error when running:
python tacacs_client -u TACACS-ADTestUser1 -H -k -v authenticate -p
If I add the following to def main():
logging.basicConfig(level=logging.INFO)
logging.info('Started')
logging.info('Finished')
I get error regarding timed out
INFO:root:Started
INFO:root:Finished
ERROR:main:error: timed out
Traceback (most recent call last):
File "tacacs_client", line 170, in main
sys.exit(authenticate(cli, args))
File "tacacs_client", line 119, in authenticate
port=args.virtual_port)
File "/usr/lib/python2.7/site-packages/tacacs_plus/client.py", line 199, in authenticate
with self.closing():
File "/usr/lib64/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/usr/lib/python2.7/site-packages/tacacs_plus/client.py", line 81, in closing
self.sock
File "/usr/lib/python2.7/site-packages/tacacs_plus/client.py", line 75, in sock
self._sock.connect(conn)
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
@joegig sounds like a good candidate for a PR!