1

I am following the tutorial on Autobahn python from the link below;

https://github.com/tavendo/AutobahnPython/blob/master/examples/twisted/wamp/app/calculator/calculator.py

The code that caused the error is below;

runner = ApplicationRunner(router, u"realm1", standalone = not args.router,
      debug = False,             # low-level logging
      debug_wamp = args.debug,   # WAMP level logging
      debug_app = args.debug     # app-level logging
   )

The error message is;

Using Twisted reactor <class 'twisted.internet.selectreactor.SelectReactor'>
Traceback (most recent call last):
  File "calculator.py", line 117, in <module>
    debug_app = args.debug     # app-level logging
TypeError: __init__() got an unexpected keyword argument 'standalone'

This was mentioned as an issue in Autobahn but I am not able to understand it enough to figure the solution myself as a newbie. https://github.com/tavendo/AutobahnPython/issues/211

I am using python 2.7

guagay_wk
  • 26,337
  • 54
  • 186
  • 295

1 Answers1

1

Remove the standalone argument from the constructor of ApplicationRunner and connect to an external WAMP router like Crossbar.io (or any other WAMP v2 compatible from the list here).

oberstet
  • 21,353
  • 10
  • 64
  • 97