无法通过远程服务器连接调用的模块

Module not callable with remote server connection

我的代码在这里:

from pypsexec import client    
import os    
import time    
import sys    
import paramiko    
host = '192.168.x.x'    
user = 'xxxxx'    
pass1 = 'xxxxx'    
c = client(host, username=user, password=pass1, encrypt=False, port=139)    
c.connect()    
try:    
    c.create_service()    
    stdout = c.run_executable("cmd.exe", arguments="xxxx")    
finally:    
    c.cleanup()    
    c.remove_service()    
    c.disconnect()

它给出了一个错误:

Module not callable with remote server connection

这可能有助于您理解错误:

x = 1
print x()

x 不是可调用对象,但您正在尝试调用它,就好像它就是它一样。此示例产生错误:

TypeError: 'int' object is not callable