结构错误找不到记录器"paramiko.transport"的处理程序. [英] Fabric error No handlers could be found for logger "paramiko.transport"

查看:190
本文介绍了结构错误找不到记录器"paramiko.transport"的处理程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定为什么会收到此错误,该错误终止了我的连接.我通过easy_install从1.7.5更新了paramiko-1.7.6.

I'm not sure why I'm getting this error that's terminating my connection. I updated paramiko-1.7.6 from 1.7.5 via easy_install.

我正在尝试设置Fabric,以将Django应用上传到服务器.当我尝试对现有应用程序目录进行备份时,似乎发生了错误:

I'm trying to setup Fabric to upload my Django app to my server. The error seems to be happening when I attempt to make a backup of the existing app directory:

def backup_current_install():
  now = datetime.datetime.now()
  cmd="cp -r /home/path/django-projects/app /home/path/django-projects/app%s" % now.strftime("%Y%m%d_%I:%M:%S")
run(cmd)

我已设置:

env.hosts  
env.password

在fabfile中,我不确定如何导航此处理程序错误.

In the fabfile and I'm not sure how to navigate this handler error.

推荐答案

事实证明,此错误是由于我没有将 env.password 配置为简单字符串而导致的.

It turns out that this error was a result of me not configuring env.password as a simple string.

环境用户环境密码都应该是简单的字符串,而不是列表. 文档

Both env.user and env.password should be simple strings, not Lists. Documentation

这篇关于结构错误找不到记录器"paramiko.transport"的处理程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆