[tftpy-general] Error while uploading
Status: Beta
Brought to you by:
msoulier
From: Yuriy K. <kis...@gm...> - 2012-10-08 15:25:49
|
Hi! My code looks like: =========================== #!/usr/bin/python import tftpy client = tftpy.TftpClient("192.168.0.2", 69) client.upload("foobar", "/tmp/foobar"); =========================== I've got while executing: =========================== Traceback (most recent call last): File "/tmp/1.py", line 6, in <module> client.upload("foobar", "/tmp/foobar"); File "/usr/lib/pymodules/python2.6/tftpy/TftpClient.py", line 77, in upload self.context.start() File "/usr/lib/pymodules/python2.6/tftpy/TftpStates.py", line 269, in start self.cycle() File "/usr/lib/pymodules/python2.6/tftpy/TftpStates.py", line 176, in cycle self.state = self.state.handle(recvpkt, raddress, rport) File "/usr/lib/pymodules/python2.6/tftpy/TftpStates.py", line 744, in handle self.pending_complete = self.context.sendDAT() AttributeError: 'TftpContextClientUpload' object has no attribute 'sendDAT' =========================== Debian 6.0 with tftpy 0.5.0. |