Mindwerks / worldengine

World generator using simulation of plates, rain shadow, erosion, etc.
MIT License
987 stars 128 forks source link

TypeError: coercing to Unicode: need string or buffer, tuple found #103

Closed psi29a closed 9 years ago

psi29a commented 9 years ago

(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

ftomassetti commented 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)
psi29a commented 9 years ago

For the GUI, no longer a problem in WE.