pattern icon indicating copy to clipboard operation
pattern copied to clipboard

SyntaxError in Installation

Open hjebali opened this issue 7 years ago • 3 comments

pip install patter in python3.6 in all the print there is a SyntaxError: Missing parentheses in call to 'print'.

hjebali avatar May 18 '18 09:05 hjebali

That is likely because the code was written in Python 2 style: print "Hello World" rather than Python 3 style: print("Hello World")

ghost avatar May 20 '18 02:05 ghost

The readme of the master branch says:

Pattern supports Python 2.7 and Python 3.6+. The Python 3 version is currently only available on the development branch.

So try to clone the repo, checkout to 'development' and then run python3 setup.py install. For me it worked (but had to run the install script with sudo)

simonhessner avatar May 28 '18 07:05 simonhessner

+1

bvallelunga avatar Jun 07 '18 08:06 bvallelunga