Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'function' object has no attribute 'write' paramiko
I want to write in a distant file with sftp.write
my code
but a error occult
AttributeError: 'function' object has no attribute 'write'
I have try with the _ but still dosen't work.
thank for the help
Call a function with parenthases.

That doesn't write anything, it just creates a reference to the write function, which is almost definitely not what you meant to do.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  AssertionError: View function mapping is overwriting an existing endpoint function Zhavi221 7 135 Apr-17-2019, 01:07 PM
Last Post: Zhavi221
  Use the write function manonB 2 101 Apr-17-2019, 05:55 AM
Last Post: manonB
  importing an attribute Skaperen 7 201 Apr-14-2019, 03:54 PM
Last Post: snippsat
  Help trying to write a function Rochense 3 176 Apr-12-2019, 02:34 PM
Last Post: Gribouillis
  Error 'object has no attribute' when iterating thru a dictionary mrapple2020 8 177 Apr-08-2019, 01:36 AM
Last Post: mrapple2020
  Class has no attribute <obj-name> arunprasanth 2 128 Mar-18-2019, 02:08 PM
Last Post: arunprasanth
  AttributeError: 'ec2.ServiceResource' object has no attribute 'describe_instances' bluethundr 1 248 Feb-27-2019, 08:10 PM
Last Post: bluethundr
  Why Can't I call base class function for my derived class object? AmirAB 2 143 Feb-13-2019, 03:04 PM
Last Post: snippsat
  AttributeError: 'NoneType' object has no attribute 'get' ahmeddedo 0 288 Feb-13-2019, 02:14 AM
Last Post: ahmeddedo
  AttributeError: 'Ball' object has no attribute 'hit_paddle' meza1123 1 228 Jan-30-2019, 07:25 PM
Last Post: buran

Forum Jump:

Users browsing this thread: 1 Guest(s)