Unable to setup Hello.cpp

32 views
Skip to first unread message

deep...@stayzilla.com

unread,
Dec 1, 2015, 2:13:35 AM12/1/15
to Crossbar
I have been having trouble with setting up the hellocpp example. Installed all the necessary packages. 

2015-12-01T11:04:53+0530 [Router      74486] An exception was raised from application code while processing a reactor selectable
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/twisted/python/log.py", line 101, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/Library/Python/2.7/site-packages/twisted/python/log.py", line 84, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/Library/Python/2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/Library/Python/2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/Library/Python/2.7/site-packages/twisted/internet/kqreactor.py", line 293, in _doWriteOrRead
    why = selectable.doRead()
  File "/Library/Python/2.7/site-packages/twisted/internet/tcp.py", line 209, in doRead
    return self._dataReceived(data)
  File "/Library/Python/2.7/site-packages/twisted/internet/tcp.py", line 215, in _dataReceived
    rval = self.protocol.dataReceived(data)
  File "/Library/Python/2.7/site-packages/autobahn/twisted/rawsocket.py", line 202, in dataReceived
    self.abort()
  File "/Library/Python/2.7/site-packages/autobahn/twisted/rawsocket.py", line 178, in abort
    raise TransportLost()
autobahn.wamp.exception.TransportLost:

2015-12-01T11:04:53+0530 [Guest       74487] ASIO I/O loop ended

I am setting this on my MAC. There were other problems earlier which I found a work around. Could someone tell me what I can do about this.
Message has been deleted

deep...@stayzilla.com

unread,
Dec 1, 2015, 2:23:41 AM12/1/15
to Crossbar
Versions of all the things that I am running

Running on *BSD or MacOSX and optimal reactor (kqueue) was installed.
     __  __  __  __  __  __      __     __
    /  `|__)/  \/__`/__`|__) /\ |__)  |/  \
    \__,|  \\__/.__/.__/|__)/~~\|  \. |\__/

 Crossbar.io        : 0.11.1
   Autobahn         : 0.10.9
     UTF8 Validator : wsaccel-0.6.2
     XOR Masker     : wsaccel-0.6.2
     JSON Codec     : ujson-1.33
     MsgPack Codec  : msgpack-python-0.4.6
   Twisted          : 15.4.0-KQueueReactor
   Python           : 2.7.10/CPython
 OS                 : Darwin-14.5.0-x86_64-i386-64bit
 Machine            : x86_64

Elvis Stansvik

unread,
Dec 1, 2015, 2:37:36 AM12/1/15
to cross...@googlegroups.com

Hi Deepak,

Did you use crossbar to generate the hellocpp template? Last time I looked, the templates had not been updated to account for recent changes in AutobahnCpp. Not sure if this is the problem, and I'm on my phone right now, but just an idea.

Elvis

--
You received this message because you are subscribed to the Google Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crossbario+...@googlegroups.com.
To post to this group, send email to cross...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/7a377b2a-4741-4195-8d2b-d3fdb9dc2b4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

deep...@stayzilla.com

unread,
Dec 14, 2015, 12:28:28 AM12/14/15
to Crossbar
I used the crossbar template generator to generate the template. Had to fix a few configs in the SConstruct to solve previous errors that had come. Still stuck with this problem.

Elvis Stansvik

unread,
Dec 14, 2015, 7:05:02 AM12/14/15
to cross...@googlegroups.com

Okay. Then the problem might simply that the templates have not been kept up to date. I would perhaps try to use examples from AutobahnCpp as a starting point instead. I think there should be some. On my phone in class right now so can't check. But look at GitHub for AutobahnCpp.

Elvis

Alexander Gödde

unread,
Dec 14, 2015, 9:19:26 AM12/14/15
to Crossbar
If it is outdated templates, then could somebody either start a pull request for an update or point me to a current version which can be used?
To unsubscribe from this group and stop receiving emails from it, send an email to crossbario+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages