crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 275 forks source link

Problems moving to Python3 #1889

Closed megastallman closed 3 years ago

megastallman commented 3 years ago

Hi guys! I'm trying to move a big project from Python2 to 3, and had an issue with Crossbar. Of cource it works now on Python2 with older dependencies versions.

Environment:

In short - Crossbar starts well, catches an error inside itself and correctly terminates:

2021-08-04T11:09:43+0000 [Controller      1 crossbar.node.native.NativeWorkerClientProtocol] Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/autobahn/wamp/websocket.py", line 60, in onOpen
    self._session.onOpen(self)
  File "/usr/local/lib/python3.8/site-packages/crossbar/router/session.py", line 353, in onOpen
    self._transport._transport_info[u'channel_id'] = binascii.b2a_hex(channel_id).decode('ascii')
TypeError: 'NoneType' object does not support item assignment
om26er commented 3 years ago

Old versions of Crossbar are not supported. Only the very latest version is supported, so you'd have to figure out a way to run things with latest Crossbar.

megastallman commented 3 years ago

Slightly lowered autobahn==21.2.2 version. So, now this combo doesn't fall at least. Thanks @om26er , I'm still gonna try to bump as much packages as possible.