[Twisted-Python] Non-list expression received, 'Server' object has no attribute 'socket'
amcouper at gmail.com
Fri Dec 2 09:28:32 EST 2005
I have an application that requires each node using it to update each other,
and to fetch updates automatically. Each node, therefore, has a server and a
client on it.
I am receiving different errors each time I run the program, and they are
coming from within the twisted packages, (shown below)
File "C:\Python24\lib\site-packages\twisted\internet\tcp.py", line 89, in
skt = self.socket
exceptions.AttributeError: 'Server' object has no attribute 'socket'
File "C:\Python24\lib\site-packages\twisted\spread\pb.py", line 572, in
raise ProtocolError("Non-list expression received.")
twisted.spread.pb.ProtocolError: Non-list expression received.
I suspect that they are caused by the way that I am running my server. On
occasion, reactor.run() finishes, and thus there is no longer a server
running in effect. I therefore use a while loop to always be running the
server. The server is launched as a thread.
application = service.Application("copy_receiver")
self.listener = reactor.listenTCP(8800, pb.PBServerFactory
#installSignalHandlers=0 allows the reactor to run in a non-main
Is this known to cause problems? If not, any ideas of why i might be getting
the error messages? or any ideas how I can keep the server running so that
it doesn't exit?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python