python-tx-tftp icon indicating copy to clipboard operation
python-tx-tftp copied to clipboard

Minimal required Twisted Version

Open robertpenz opened this issue 10 years ago • 2 comments

I did a test with twisted version 11.1.0 and the problem with the descendant method is fixed, but with this version but you still get errors:

2014-02-28 09:43:24+0100 [TFTP (UDP)] Datagram received from ('127.0.0.1', 55347): <WRQDatagram(filename=testfile.bla, mode=netascii)>
2014-02-28 09:43:24+0100 [-] RemoteOriginWriteSession starting on 54306
2014-02-28 09:43:24+0100 [-] Starting protocol <tftp.bootstrap.RemoteOriginWriteSession instance at 0x1e83950>
2014-02-28 09:43:25+0100 [RemoteOriginWriteSession (UDP)] (UDP Port 54306 Closed)
2014-02-28 09:43:25+0100 [RemoteOriginWriteSession (UDP)] Stopping protocol <tftp.bootstrap.RemoteOriginWriteSession instance at 0x1e83950>
2014-02-28 09:43:28+0100 [-] Unhandled Error
        Traceback (most recent call last):
          File "server.py", line 19, in <module>
            main()
          File "server.py", line 16, in main
            reactor.run()
          File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
            self.mainLoop()
          File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
            self.runUntilCurrent()
        --- <exception caught here> ---
          File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
            call.func(*call.args, **call.kw)
          File "/home/robert/tmp/tftp/tests/tftp/util.py", line 80, in _call_and_schedule
            self.callable(*self.callable_args, **self.callable_kwargs)
          File "/home/robert/tmp/tftp/tests/tftp/session.py", line 157, in sendData
            self.transport.write(bytes)
          File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 151, in write
            return self.socket.send(datagram)
        exceptions.AttributeError: 'Port' object has no attribute 'socket'

So which version are you using?

robertpenz avatar Feb 28 '14 08:02 robertpenz

I'm using version 14.0.2 and am seeing the same error.

jcollie avatar Sep 24 '14 17:09 jcollie

Pull request #19 should fix this issue.

jcollie avatar Sep 24 '14 18:09 jcollie