Skip to content

Instantly share code, notes, and snippets.

@benjamingorman
Created December 30, 2014 17:42
Show Gist options
  • Save benjamingorman/931ea58162640737c47e to your computer and use it in GitHub Desktop.
Save benjamingorman/931ea58162640737c47e to your computer and use it in GitHub Desktop.
Python connect to RoboMinions log
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/google/protobuf/internal/python_message.py", line 839, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "/usr/lib/python3.4/site-packages/google/protobuf/internal/python_message.py", line 860, in InternalParse
(tag_bytes, new_pos) = local_ReadTag(buffer, pos)
File "/usr/lib/python3.4/site-packages/google/protobuf/internal/decoder.py", line 189, in ReadTag
while (ord(buffer[pos]) if py2 else buffer[pos]) & 0x80:
TypeError: unsupported operand type(s) for &: 'str' and 'int'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "botfuncs.py", line 1, in <module>
from botchallenge import *
File "/home/ben/Projects/minecraft_botchallenge/bot_programs/botchallenge/__init__.py", line 2, in <module>
from . import client
File "/home/ben/Projects/minecraft_botchallenge/bot_programs/botchallenge/client.py", line 12, in <module>
from .api import robotapi_pb2
File "/home/ben/Projects/minecraft_botchallenge/bot_programs/botchallenge/api/robotapi_pb2.py", line 11, in <module>
from . import materials_pb2
File "/home/ben/Projects/minecraft_botchallenge/bot_programs/botchallenge/api/materials_pb2.py", line 1441, in <module>
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), '\n\036au.id.katharos.robominions.apiB\tMaterials')
File "/usr/lib/python3.4/site-packages/google/protobuf/descriptor.py", line 753, in _ParseOptions
message.ParseFromString(string)
File "/usr/lib/python3.4/site-packages/google/protobuf/message.py", line 186, in ParseFromString
self.MergeFromString(serialized)
File "/usr/lib/python3.4/site-packages/google/protobuf/internal/python_message.py", line 845, in MergeFromString
raise message_mod.DecodeError('Truncated message.')
google.protobuf.message.DecodeError: Truncated message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment