'function' object has no attribute 'write' paramiko - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: 'function' object has no attribute 'write' paramiko (/thread-16054.html) |
'function' object has no attribute 'write' paramiko - lateublegende - Feb-12-2019 hello I want to write in a distant file with sftp.write my code write=paramiko.SFTPFile.write sftp=paramiko.SFTPFile.write sftp.write(data=hello)but a error occult I have try with the _ but still dosen't work.thank for the help RE: 'function' object has no attribute 'write' paramiko - nilamo - Feb-12-2019 Call a function with parenthases. Quote:That doesn't write anything, it just creates a reference to the write function, which is almost definitely not what you meant to do.sftp=paramiko.SFTPFile.write |