NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead

NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead

我正在使用结构库创建远程连接和复制我的文件。代码没问题,我复查了好几遍。但是我得到 "NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead" 而 运行 代码。我什至不明白这个错误。为了方便起见,我添加了这个错误的踪迹。

`ubuntu@ubuntu-VirtualBox:~/Downloads/finalinstallandconn$ python Installation_Manager.py 
connection env is setup
[ubuntu@localhost:22] sudo: mkdir -p /opt/saas/
Traceback (most recent call last):
  File "Installation_Manager.py", line 43, in <module>
    install.install()
  File "Installation_Manager.py", line 34, in install
    self.pre_conditions()
  File "Installation_Manager.py", line 25, in pre_conditions
    self.conn.copy_directory(self.path, "/opt/saas/")
  File "/home/ubuntu/Downloads/finalinstallandconn/connections.py", line 34, in copy_directory
    self.run_remote_command('mkdir -p '+remote_path)
  File "/home/ubuntu/Downloads/finalinstallandconn/connections.py", line 24, in run_remote_command
    sudo(command)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 649, in host_prompting_wrapper
    return func(*args, **kwargs)
  File "/usr/local/l`enter code here`ib/python2.7/dist-packages/fabric/operations.py", line 1109, in sudo
    stderr=stderr, timeout=timeout, shell_escape=shell_escape,
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 923, in _run_command
    channel=default_channel(), command=wrapped_command, pty=pty,
  File "/usr/local/lib/python2.7/dist-packages/fabric/state.py", line 397, in default_channel
    chan = _open_session()
  File "/usr/local/lib/python2.7/dist-packages/fabric/state.py", line 389, in _open_session
    return connections[env.host_string].get_transport().open_session()
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 159, in __getitem__
    self.connect(key)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 151, in connect
    user, host, port, cache=self, seek_gateway=seek_gateway)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 452, in connect
    sock=sock
  File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 325, in connect
    t.start_client()
  File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 492, in start_client
    raise e
NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead`

Fabric 有一些先决条件,例如 setuptools,python 并且 paramiko 应该与 fabric 一起安装。请检查您的包裹。