Running AutobahnCpp examples

#1

I cannot seem to get the server.py to run in the Autobahn|Cpp project from github. I even tried cloning the Autobahn|Py and installing it but still no luck. Here is the problem:

examples$ python server.py

2014-11-21 13:50:03-0500 [-] Log opened.

2014-11-21 13:50:03-0500 [-] Traceback (most recent call last):

2014-11-21 13:50:03-0500 [-] File “server.py”, line 151, in

2014-11-21 13:50:03-0500 [-] session_factory.add(MyBackendComponent())

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1444, in add

2014-11-21 13:50:03-0500 [-] self._app_sessions[session] = RouterApplicationSession(session, self._routerFactory, authid, authrole)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1083, in init

2014-11-21 13:50:03-0500 [-] self._session.onConnect()

2014-11-21 13:50:03-0500 [-] File “server.py”, line 46, in onConnect

2014-11-21 13:50:03-0500 [-] self.join(“realm1”)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 379, in join

2014-11-21 13:50:03-0500 [-] self._transport.send(msg)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1112, in send

2014-11-21 13:50:03-0500 [-] self._router = self._routerFactory.get(msg.realm)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/router.py”, line 168, in get

2014-11-21 13:50:03-0500 [-] self._routers[realm] = self.router(self, realm, self._options)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/router.py”, line 48, in init

2014-11-21 13:50:03-0500 [-] self._broker = self.broker(self, self._options)

2014-11-21 13:50:03-0500 [-] AttributeError: Router instance has no attribute ‘broker’

Any suggestions?

0 Likes

#2

The easiest way of getting started with AutobahnCpp is by using Crossbar.io and it’s ability to generate a complete demo app from it’s builtin templates

···

Sent from Mobile (Google Nexus 5)

Am 21.11.2014 19:52 schrieb “David Chappelle” chap...@gmail.com:

I cannot seem to get the server.py to run in the Autobahn|Cpp project from github. I even tried cloning the Autobahn|Py and installing it but still no luck. Here is the problem:

examples$ python server.py

2014-11-21 13:50:03-0500 [-] Log opened.

2014-11-21 13:50:03-0500 [-] Traceback (most recent call last):

2014-11-21 13:50:03-0500 [-] File “server.py”, line 151, in

2014-11-21 13:50:03-0500 [-] session_factory.add(MyBackendComponent())

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1444, in add

2014-11-21 13:50:03-0500 [-] self._app_sessions[session] = RouterApplicationSession(session, self._routerFactory, authid, authrole)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1083, in init

2014-11-21 13:50:03-0500 [-] self._session.onConnect()

2014-11-21 13:50:03-0500 [-] File “server.py”, line 46, in onConnect

2014-11-21 13:50:03-0500 [-] self.join(“realm1”)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 379, in join

2014-11-21 13:50:03-0500 [-] self._transport.send(msg)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1112, in send

2014-11-21 13:50:03-0500 [-] self._router = self._routerFactory.get(msg.realm)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/router.py”, line 168, in get

2014-11-21 13:50:03-0500 [-] self._routers[realm] = self.router(self, realm, self._options)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/router.py”, line 48, in init

2014-11-21 13:50:03-0500 [-] self._broker = self.broker(self, self._options)

2014-11-21 13:50:03-0500 [-] AttributeError: Router instance has no attribute ‘broker’

Any suggestions?

You received this message because you are subscribed to the Google Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send an email to autobahnws+...@googlegroups.com.

To post to this group, send email to autob...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/a2e823a8-e699-40c0-a536-5c0920f99ef0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#3

Thanks for the quick reply Tobias. I was following the readme from Autobahn|Cpp on github. I’ll try the crossbar.io approach.

···

On Friday, 21 November 2014 14:11:01 UTC-5, Tobias Oberstein wrote:

The easiest way of getting started with AutobahnCpp is by using Crossbar.io and it’s ability to generate a complete demo app from it’s builtin templates

Sent from Mobile (Google Nexus 5)

Am 21.11.2014 19:52 schrieb “David Chappelle” cha...@gmail.com:

I cannot seem to get the server.py to run in the Autobahn|Cpp project from github. I even tried cloning the Autobahn|Py and installing it but still no luck. Here is the problem:

examples$ python server.py

2014-11-21 13:50:03-0500 [-] Log opened.

2014-11-21 13:50:03-0500 [-] Traceback (most recent call last):

2014-11-21 13:50:03-0500 [-] File “server.py”, line 151, in

2014-11-21 13:50:03-0500 [-] session_factory.add(MyBackendComponent())

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1444, in add

2014-11-21 13:50:03-0500 [-] self._app_sessions[session] = RouterApplicationSession(session, self._routerFactory, authid, authrole)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1083, in init

2014-11-21 13:50:03-0500 [-] self._session.onConnect()

2014-11-21 13:50:03-0500 [-] File “server.py”, line 46, in onConnect

2014-11-21 13:50:03-0500 [-] self.join(“realm1”)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 379, in join

2014-11-21 13:50:03-0500 [-] self._transport.send(msg)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/protocol.py”, line 1112, in send

2014-11-21 13:50:03-0500 [-] self._router = self._routerFactory.get(msg.realm)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/router.py”, line 168, in get

2014-11-21 13:50:03-0500 [-] self._routers[realm] = self.router(self, realm, self._options)

2014-11-21 13:50:03-0500 [-] File “/home/dchappelle/autobahn/AutobahnPython/autobahn/autobahn/wamp/router.py”, line 48, in init

2014-11-21 13:50:03-0500 [-] self._broker = self.broker(self, self._options)

2014-11-21 13:50:03-0500 [-] AttributeError: Router instance has no attribute ‘broker’

Any suggestions?

You received this message because you are subscribed to the Google Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send an email to autobahnws+...@googlegroups.com.

To post to this group, send email to auto...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/a2e823a8-e699-40c0-a536-5c0920f99ef0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes