Paramiko Module Error Resolution method _php instance for py file to exe

Source: Internet
Author: User
Tags log log ssh

Problem Description:

The Python code contains a remote login ssh for the Paramiko module, which is wrong with the Pyinstaller to the exe-times.

The error prompt is "No handlers could is found for logger" Paramiko.transport "

Error location:

SSH = Paramiko. Sshclient ()
Ssh.set_missing_host_key_policy (Paramiko. Autoaddpolicy ())

Solution:

Add a line of code to record the transfer log.

The code is as follows:

Paramiko.util.log_to_file ("Log.log")
ssh = Paramiko. Sshclient ()
ssh.set_missing_host_key_policy (Paramiko. Autoaddpolicy ())

There is a problem behind it that can be viewed in the log log.

Reference: Http://stackoverflow.com/questions/19152578/no-handlers-could-be-found-for-logger-paramiko

The above is a small set to the introduction of the Py file to include Paramiko module error resolution, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.