Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alex4747-pub opened this issue Apr 2, 2020 · 1 comment
Open

Comments

@alex4747-pub
Copy link

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 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
@wbarnha
Copy link
Contributor

wbarnha commented Mar 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants