Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41088
| References | <009f01ce1e8a$03e89f60$0bb9de20$@com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2013-03-11 14:15 -0600 |
| Subject | Re: Problem installing Pyparsing |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3205.1363032964.2939.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Problem installing Pyparsing Ian Kelly <ian.g.kelly@gmail.com> - 2013-03-11 14:15 -0600
csiph-web