Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

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

Open
junebug12851 opened this issue Jul 17, 2017 · 2 comments

Comments

@junebug12851
Copy link

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
Copy link
Author

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
Copy link
Member

Sanqui commented Jul 18, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants