txZMQ icon indicating copy to clipboard operation
txZMQ copied to clipboard

txzmq/pubsub.py", line 26 -- exception cannot conatenate bytes

Open alex4747-pub opened this issue 4 years ago • 1 comments

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

alex4747-pub avatar Apr 02 '20 19:04 alex4747-pub

I've also encountered this issue, and I have created #89 to address this.

wbarnha avatar Mar 28 '22 16:03 wbarnha