SyntaxError: invalid syntax, File "extras/pokemontools/gfx.py", line 71 #106

Open
opened 2017-07-17 08:31:09 +00:00 by junebug12851 · 2 comments
junebug12851 commented 2017-07-17 08:31:09 +00:00 (Migrated from github.com)

Not sure which repo to post this issue in. I'm using pret/pokemontcg but the issue is happening in pret/pokemon-reverse-engineering-tools or extras submodule.

Upon running make I get this error:

  File "extras/pokemontools/gfx.py", line 71
    tiles = sorted(enumerate(tiles), key= lambda (i, tile): i % width)
                                                 ^
SyntaxError: invalid syntax
Makefile:20: recipe for target 'src/main.o' failed
make: *** [src/main.o] Error 1

But i see that the current extras is referencing an old version of pokemon-reverse-engineering-tools. Maybe I can update it to the newest version or perhaps the whole project has been abandoned in which case I shouldn't really do much with it.

Not sure which repo to post this issue in. I'm using pret/pokemontcg but the issue is happening in pret/pokemon-reverse-engineering-tools or extras submodule. Upon running make I get this error: ``` File "extras/pokemontools/gfx.py", line 71 tiles = sorted(enumerate(tiles), key= lambda (i, tile): i % width) ^ SyntaxError: invalid syntax Makefile:20: recipe for target 'src/main.o' failed make: *** [src/main.o] Error 1 ``` But i see that the current extras is referencing an old version of pokemon-reverse-engineering-tools. Maybe I can update it to the newest version or perhaps the whole project has been abandoned in which case I shouldn't really do much with it.
junebug12851 commented 2017-07-17 08:34:13 +00:00 (Migrated from github.com)

I updated to latest commit and got this message now

Traceback (most recent call last):
  File "extras/pokemontools/gfx.py", line 7, in <module>
    from . import png
SystemError: Parent module '' not loaded, cannot perform relative import
Makefile:20: recipe for target 'src/main.o' failed
make: *** [src/main.o] Error 1

This is a new error and I see its already been documented here so perhaps I'll wait. Good luck.

I updated to latest commit and got this message now ``` Traceback (most recent call last): File "extras/pokemontools/gfx.py", line 7, in <module> from . import png SystemError: Parent module '' not loaded, cannot perform relative import Makefile:20: recipe for target 'src/main.o' failed make: *** [src/main.o] Error 1 ``` This is a new error and I see its already been documented here so perhaps I'll wait. Good luck.
Sanqui commented 2017-07-18 07:32:42 +00:00 (Migrated from github.com)

Try the old version with Python 2.
It might be possible to write make PYTHON=python2.

Try the old version with Python 2. It might be possible to write `make PYTHON=python2`.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
decomp/pokemon-reverse-engineering-tools#106
No description provided.