pattern icon indicating copy to clipboard operation
pattern copied to clipboard

Error while installing

Open darmawiguna opened this issue 7 years ago • 7 comments

I am new in python. What is the error of this while installing?

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/2d/449tr65508b052gjnmbvv3p40000gn/T/pip-build-rp2ndohf/pattern/setup.py", line 40
    print n
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int n)?

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/2d/449tr65508b052gjnmbvv3p40000gn/T/pip-build-rp2ndohf/pattern/

darmawiguna avatar Jan 24 '18 10:01 darmawiguna

Looks like you are trying with python 3.x version . you can change the print statement to print (n) or try with python 2.x version

jatin-practice avatar Jan 24 '18 11:01 jatin-practice

I installed using pip install pattern. How to change it to python2 before installing the pattern?

darmawiguna avatar Jan 24 '18 11:01 darmawiguna

Can you try like pip2.7 install pattern

jatin-practice avatar Jan 24 '18 11:01 jatin-practice

Awesome. It worked. Thank you so much.

darmawiguna avatar Jan 24 '18 11:01 darmawiguna

You can also pip install pattern3, however there is an error in pattern3\text\tree.py in the pypi package currently (which is why I'm here)...

eyb1 avatar Feb 10 '18 10:02 eyb1

You can also clone the repository, switch to the development branch and then run python3 setup.py install. I did this after I saw the master branch says this:

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

For me it works with python3 now.

simonhessner avatar May 28 '18 07:05 simonhessner

Related #232

tales-aparecida avatar Mar 16 '19 03:03 tales-aparecida