RuntimeError: could not create serializer for "cbor" (available: ['json'])

#1
self.__wamp = Component(
  transports=u"ws://router",
  realm=u"realm1"
)
run(self.__wamp)

With the above code I get the following error

connecting once using transport type “websocket” over endpoint “tcp”
Connection failed: RuntimeError: could not create serializer for “cbor” (available: [‘json’])

What can I do to alleviate this?

#2

You need to install the Python “extra” for serialization dependencies. So like pip install autobahn[serialization] will give you all the non-JSON serializers