Stompy
Jason Friedman
jsf80238 at gmail.com
Sun Sep 25 22:10:23 EDT 2016
>
> My error:
>> Traceback (most recent call last):
>> File "temp.py", line 8, in <module>
>> my_stomp.connect(AMQ_USERNAME, AMQ_PASSWORD)
>> File "/lclapps/oppen/thirdparty/stompy/stomp.py", line 48, in connect
>> self.frame.connect(self.sock, username=username, password=password,
>> clientid=clientid)
>> File "/lclapps/oppen/thirdparty/stompy/frame.py", line 92, in connect
>> self.send_frame(frame.as_string())
>> File "/lclapps/oppen/thirdparty/stompy/frame.py", line 250, in
>> send_frame
>> self.sock.sendall(frame)
>> TypeError: 'str' does not support the buffer interface
>>
>> I expected you've used Unicode strings for AMQ_USERNAME and AMQ_PASSWORD,
> but if Stompy was written for Python 2, it'll be expecting bytestrings
> instead.
>
> You'll need to do more work on Stompy to fix the parts that 2to3 missed.
Thanks for the advice, I will try that.
I will also try https://pypi.python.org/pypi/stompest/.
More information about the Python-list
mailing list