Closed psi29a closed 9 years ago
This is the method where the error happens
@staticmethod
def open_protobuf(filename):
with open(filename, "rb") as f:
content = f.read()
return World.protobuf_unserialize(content)
For the GUI, no longer a problem in WE.
(venv)bcurtis@Wintermute:~/workspace/WorldEngine/worldengine-gui$ python worldengine-gui/main.py Traceback (most recent call last): File "worldengine-gui/main.py", line 530, in _on_open world = World.open_protobuf(filename) File "/home/bcurtis/workspace/WorldEngine/worldengine/worldengine/world.py", line 71, in open_protobuf with open(filename, "rb") as f: TypeError: coercing to Unicode: need string or buffer, tuple found Traceback (most recent call last): File "worldengine-gui/main.py", line 530, in _on_open world = World.open_protobuf(filename) File "/home/bcurtis/workspace/WorldEngine/worldengine/worldengine/world.py", line 71, in open_protobuf with open(filename, "rb") as f: TypeError: coercing to Unicode: need string or buffer, tuple found