crossbario / crossbar

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

Pub/Sub problem in python3.5 #872

Closed antuan1996 closed 7 years ago

antuan1996 commented 8 years ago

I try to use pub/sub features and get error in crossbar: File ".../lib/python3.5/site-packages/crossbar/router/unisocket.py", line 96, in dataReceived request_uri_first_component = filter(lambda x: x.strip() != "", request_uri.split('/')) builtins.TypeError: a bytes-like object is required, not 'str'

I do not have same problem if i run crossbar with python 2.7

oberstet commented 8 years ago

What Crossbar.io version? Please post the output of crossbar version. Also, could you retry with the master branch?

antuan1996 commented 8 years ago
 __  __  __  __  __  __      __     __
/  `|__)/  \/__`/__`|__) /\ |__)  |/  \
\__,|  \\__/.__/.__/|__)/~~\|  \. |\__/

Crossbar.io : 0.15.0 Autobahn : 0.16.0 (with JSON, MessagePack, CBOR, UBJSON) Twisted : 16.4.0-EPollReactor LMDB : 0.89/lmdb-0.9.18 Python : 3.5.2/CPython OS : Linux-4.4.0-36-generic-x86_64-with-Ubuntu-16.04-xenial Machine : x86_64

meejah commented 7 years ago

I can confirm that this is a bug in 0.15.0, but also that it is fixed on master. @antuan1996 you can install crossbar master to confirm for your use-case by doing pip install https://github.com/crossbario/crossbar/archive/master.zip#egg=crossbar

(Please re-open if this doesn't work for you)