-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Hello
I got the following error when receiving a message (from a single contact, group chats work):
TypeError: unsupported operand type(s) for &: 'str' and 'int'
During handling of the above exception, another exception occurred:
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\protobuf-3.0.0b2-py3.5.egg\google\protobuf\internal\python_message.py", line 1097, in MergeFromString
google.protobuf.message.DecodeError: Truncated message.
I tried both protbuf 3.0.0.b2 and b3, same error.
Python version is 3.5.1
Here are my installed packages + version:
pip (8.1.2)
protobuf (3.0.0b2)
pycrypto (2.6.1)
pyreadline (2.1)
python-axolotl (0.1.35)
python-axolotl-curve25519 (0.1)
python-dateutil (2.5.3)
setuptools (18.2)
six (1.10.0)
yowsup2 (2.5.0)
Here's the full error:
Traceback (most recent call last):
DUMP:
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\protobuf-3.0.0b2-py3.5.egg\google\protobuf\internal\python_message.py", line 1091, in MergeFromString
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\protobuf-3.0.0b2-py3.5.egg\google\protobuf\internal\python_message.py", line 1113, in InternalParse
�Test
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\protobuf-3.0.0b2-py3.5.egg\google\protobuf\internal\decoder.py", line 181, in ReadTag
['\n', '\x04', 'T', 'e', 's', 't']
[10, 4, 84, 101, 115, 116]
TypeError: unsupported operand type(s) for &: 'str' and 'int'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/Thomas/IdeaProjects/YowsupTest/YowsupTest/__init__.py", line 1, in <module>
from YowsupTest.stack import YowsupEchoStack
File "C:\Users\Thomas\IdeaProjects\YowsupTest\YowsupTest\__init__.py", line 9, in <module>
YowsupEchoStack.start(stack)
File "C:\Users\Thomas\IdeaProjects\YowsupTest\YowsupTest\stack.py", line 21, in start
self.stack.loop()
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\stacks\yowstack.py", line 196, in loop
asyncore.loop(*args, **kwargs)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\asyncore.py", line 203, in loop
poll_fun(timeout, map)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\asyncore.py", line 150, in poll
read(obj)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\asyncore.py", line 87, in read
obj.handle_error()
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\asyncore.py", line 83, in read
obj.handle_read_event()
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\asyncore.py", line 423, in handle_read_event
self.handle_read()
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\network\layer.py", line 102, in handle_read
self.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\network\layer.py", line 110, in receive
self.toUpper(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\__init__.py", line 76, in toUpper
self.__upper.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\stanzaregulator\layer.py", line 29, in receive
self.processReceived()
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\stanzaregulator\layer.py", line 49, in processReceived
self.toUpper(oneMessageData)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\__init__.py", line 76, in toUpper
self.__upper.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\auth\layer_crypt.py", line 65, in receive
self.toUpper(payload)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\__init__.py", line 76, in toUpper
self.__upper.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\coder\layer.py", line 35, in receive
self.toUpper(node)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\__init__.py", line 76, in toUpper
self.__upper.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\logger\layer.py", line 14, in receive
self.toUpper(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\__init__.py", line 76, in toUpper
self.__upper.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\axolotl\layer_control.py", line 44, in receive
self.toUpper(protocolTreeNode)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\__init__.py", line 76, in toUpper
self.__upper.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\__init__.py", line 189, in receive
s.receive(data)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\axolotl\layer_receive.py", line 41, in receive
self.onMessage(protocolTreeNode)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\axolotl\layer_receive.py", line 74, in onMessage
self.handleEncMessage(protocolTreeNode)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\axolotl\layer_receive.py", line 88, in handleEncMessage
self.handleWhisperMessage(node)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\axolotl\layer_receive.py", line 144, in handleWhisperMessage
self.parseAndHandleMessageProto(encMessageProtocolEntity, plaintext[:-padding])
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\yowsup2-2.5.0-py3.5.egg\yowsup\layers\axolotl\layer_receive.py", line 171, in parseAndHandleMessageProto
m.ParseFromString(serializedData)
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\protobuf-3.0.0b2-py3.5.egg\google\protobuf\message.py", line 185, in ParseFromString
File "C:\Users\Thomas\AppData\Local\Programs\Python\Python35-32\lib\site-packages\protobuf-3.0.0b2-py3.5.egg\google\protobuf\internal\python_message.py", line 1097, in MergeFromString
google.protobuf.message.DecodeError: Truncated message.
Process finished with exit code 1
Metadata
Metadata
Assignees
Labels
No labels