Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41088 > unrolled thread

Re: Problem installing Pyparsing

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2013-03-11 14:15 -0600
Last post2013-03-11 14:15 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Problem installing Pyparsing Ian Kelly <ian.g.kelly@gmail.com> - 2013-03-11 14:15 -0600

#41088 — Re: Problem installing Pyparsing

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-03-11 14:15 -0600
SubjectRe: Problem installing Pyparsing
Message-ID<mailman.3205.1363032964.2939.python-list@python.org>
On Mon, Mar 11, 2013 at 12:55 PM, Jaime Stuardo <jstuardo@desytec.com> wrote:
> Hello…
>
> I have downloaded pyparsing-2.0.0 files.  When I run “python setup.py
> install” I get this error:
>
> Traceback (most recent call last):
>   File "setup.py", line 9, in <module>
>     from pyparsing import __version__ as pyparsing_version
>   File "/tmp/openerp-7.0-20130311-002114/pyparsing-2.0.0/pyparsing.py", line
> 629
>     nonlocal limit,foundArity
>                  ^
> SyntaxError: invalid syntax
>
>
> How can I solve it?

nonlocal is a Python 3 keyword.  The error suggests that you are
probably running this with Python 2.  Either upgrade your Python
version to 3.x or find another version of pyparsing that supports
Python 2.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web