[Twisted-Python] UNIX socket problem

Matteo Giacomazzi matteo.giacomazzi at email.it
Wed Jan 7 05:52:34 EST 2004


Hello,

  I have a problem with a TAP using UNIX socket.
  On  one  server  it  works  fine, on another one it raises a strange
  exception, here is the trace if someone can help...
  I  can't  understand  why  self.factory,  where  self  should  be  a
  unix.Connector  instance,  get an int value instead of the factory I
  provide. And, in any case, I cannot understand why it happens on one
  server but not in another one (same Python and Twisted version).
  Thanks!

2004/01/07 11:44 CET [-] Traceback (most recent call last):
2004/01/07 11:44 CET [-]   File "/usr/bin/twistd", line 36, in ?
2004/01/07 11:44 CET [-]     run()
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 188, in run
2004/01/07 11:44 CET [-]     app.run(runApp, ServerOptions)
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 200, in run
2004/01/07 11:44 CET [-]     runApp(config)
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 179, in runApp
2004/01/07 11:44 CET [-]     startApplication(config, application)
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 165, in startApplication
2004/01/07 11:44 CET [-]     app.startApplication(application, not config['no_save'])
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 220, in startApplication
2004/01/07 11:44 CET [-]     service.IService(application).startService()
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/application/service.py", line 194, in startService
2004/01/07 11:44 CET [-]     service.startService()
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/application/service.py", line 194, in startService
2004/01/07 11:44 CET [-]     service.startService()
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/application/internet.py", line 81, in startService
2004/01/07 11:44 CET [-]     self._connection = self._getConnection()
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/application/internet.py", line 89, in _getConnection
2004/01/07 11:44 CET [-]     return getattr(reactor, 'connect'+self.method)(*self.args,
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line 232, in connectUNIX
2004/01/07 11:44 CET [-]     c.connect()
2004/01/07 11:44 CET [-]   File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 553, in connect
2004/01/07 11:44 CET [-]     self.factory.doStart()
2004/01/07 11:44 CET [-] AttributeError: 'int' object has no attribute 'doStart'  


Kindest regards,
 Matteo





More information about the Twisted-Python mailing list