Mindwerks / worldengine

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

invalid syntax #213

Closed burakk closed 7 years ago

burakk commented 8 years ago

Hi, I am using mac os x. I am getting the following output with python 3.5.

(python3.5.0)Buraks-MacBook-Pro:python3.5.0 burakk$ worldengine ancient_map -w an_example.world Traceback (most recent call last): File "/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/python3.5.0/bin/worldengine", line 7, in from worldengine.cli.main import main File "/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/python3.5.0/lib/python3.5/site-packages/worldengine/cli/main.py", line 6, in import worldengine.generation as geo File "/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/python3.5.0/lib/python3.5/site-packages/worldengine/generation.py", line 2, in from worldengine.world import Step File "/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/python3.5.0/lib/python3.5/site-packages/worldengine/world.py", line 15, in import worldengine.protobuf.World_pb2 as Protobuf File "/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/python3.5.0/lib/python3.5/site-packages/worldengine/protobuf/World_pb2.py", line 8, in from google.protobuf import reflection as _reflection File "/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/python3.5.0/lib/python3.5/site-packages/google/protobuf/reflection.py", line 68, in from google.protobuf.internal import python_message File "/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/python3.5.0/lib/python3.5/site-packages/google/protobuf/internal/python_message.py", line 846 except struct.error, e: ^ SyntaxError: invalid syntax

psi29a commented 8 years ago

That is just evil, protobuf strikes again! Looks like it use the old-style exceptions. We can help put pressure on protobuf to fix this.

In the mean time, we can try to catch it ourselves but we can't know what the original message was.

Might ask, the "an_example.world"... was that also created by python3.5 or was this from a previous version of WE?

tcld commented 8 years ago

What version of Worldengine are you even using? The most recent one?

burakk commented 8 years ago

I have installed it via pip. I think it is the production version.

tcld commented 8 years ago

That means version 0.18; I had a lot of problems installing that version, I expect 0.19 to fix the problems for you. And hopefully 0.19 will be released soon. ;)

psi29a commented 8 years ago

try worldengine --version

ftomassetti commented 8 years ago

Version 0.19.0 is on pypi On 1 Dec 2015 8:24 p.m., "tcld" notifications@github.com wrote:

That means version 0.18; I had a lot of problems installing that version, I expect 0.19 to fix the problems for you. And hopefully 0.19 will be released soon. ;)

— Reply to this email directly or view it on GitHub https://github.com/Mindwerks/worldengine/issues/213#issuecomment-161069556 .

burakk commented 8 years ago

thanx !:)

psi29a commented 8 years ago

Can this be closed?

anshuman73 commented 7 years ago

Hi, is this issue still open ? What's the decision ? What to do if this can be fixed ?