Want more features on Pastebin? Sign Up, it's FREE!
Guest

bino-echobot-error

By: a guest on Aug 31st, 2010  |  syntax: None  |  size: 1.18 KB  |  views: 102  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #test script
  2. import xmlrpclib
  3.  
  4. s = xmlrpclib.ServerProxy("http://localhost:50008")
  5. print s.dispatch("a")
  6. ######################################
  7. #echobot-error
  8. 2010-08-31 22:14:39+0700 [HTTPChannel,0,127.0.0.1] Unhandled Error
  9.         Traceback (most recent call last):
  10.           File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 125, in process
  11.             self.render(resrc)
  12.           File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 132, in render
  13.             body = resrc.render(self)
  14.           File "/usr/lib/python2.6/dist-packages/twisted/web/resource.py", line 210, in render
  15.             return m(request)
  16.           File "/usr/lib/python2.6/dist-packages/twisted/web/xmlrpc.py", line 123, in render_POST
  17.             d = defer.maybeDeferred(function, *args)
  18.         --- <exception caught here> ---
  19.           File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 117, in maybeDeferred
  20.             result = f(*args, **kw)
  21.           File "/home/bino/Documents/iwic/kode/twisted1/echobot.py", line 50, in xmlrpc_dispatch
  22.             return self.fc.mycall(m)
  23.           File "/home/bino/Documents/iwic/kode/twisted1/echobot.py", line 37, in mycall
  24.             xmppclient.send(reply)
  25.         exceptions.NameError: global name 'xmppclient' is not defined
clone this paste RAW Paste Data