You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/ar/Envs/a3_pyvcluster/lib/python3.7/site-packages/txzmq/pubsub.py", line 26, in publish |class ZmqSubConnection(ZmqConnection):
self.send(tag + b'\0' + message) | """
TypeError: can only concatenate str (not "bytes") to str
def publish(self, message, tag=b''):
"""
Publish message with specified tag.
:param message: message data
:type message: str
:param tag: message tag
:type tag: str
"""
self.send(tag + b'\0' + message) <---- It does not work in python3, I tried both tag and message being bytes and it does not work either
The text was updated successfully, but these errors were encountered:
alex4747-pub
changed the title
txzmq/pubsub.py", line 26 -- exception cannot contaenate bytes
txzmq/pubsub.py", line 26 -- exception cannot conatenate bytes
Apr 2, 2020
File "/home/ar/Envs/a3_pyvcluster/lib/python3.7/site-packages/txzmq/pubsub.py", line 26, in publish |class ZmqSubConnection(ZmqConnection):
self.send(tag + b'\0' + message) | """
TypeError: can only concatenate str (not "bytes") to str
def publish(self, message, tag=b''):
"""
Publish
message
with specifiedtag
.The text was updated successfully, but these errors were encountered: