'Linux MCP decompile.sh?

I'm using Ubuntu and I have the following problem, when I want to decompile Minecraft (with decompile.sh) I get the following error:

SyntaxError: Missing parentheses in call to 'print'. Did you mean print('')?

What is the reason for this?



Solution 1:[1]

The shell script assumes that python is Python 2, but on your system it's Python 3.

Solution 2:[2]

If you view the script you will realize it runs one line only, install python2 and edit the script to python2.* (check what python2 you have and replace with * and save and run.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Joseph Sible-Reinstate Monica
Solution 2 The_Count