Storyyeller / Krakatau

Java decompiler, assembler, and disassembler
GNU General Public License v3.0
1.95k stars 219 forks source link

SyntaxError: Missing parentheses in call to 'print' #143

Closed i0xHeX closed 6 years ago

i0xHeX commented 6 years ago

Errors with print trying to decompile:

Traceback (most recent call last):
  File "..\decompile.py", line 8, in <module>
    import Krakatau.ssa
  File "C:\Users\LuckyZeeRo\Desktop\Krakatau Assembler Java 9\Krakatau\ssa\__init__.py", line 1, in <module>
    from .graph import ssaFromVerified
  File "C:\Users\LuckyZeeRo\Desktop\Krakatau Assembler Java 9\Krakatau\ssa\graph.py", line 577
    print 'Warning, nesting subprocedures detected! This method may take a long time to decompile.'
                                                                                                  ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print 'Warning, nesting subprocedures detected! This method may take a long time to decompile.')?

Python 3.7.0a2 Seems it's for old Python. New syntax be like print("text")

Janmm14 commented 6 years ago

did you used python 2.x?

i0xHeX commented 6 years ago

No, I didn't I have Python 3.7.0a2 installed

Janmm14 commented 6 years ago

Then that's the problem, decompilation process just supports python 2.x

Storyyeller commented 6 years ago

As mentioned by Janmm, the decompiler only supports Python 2. The assembler and disassembler support both Python 2 and Python 3.