Closed rotu closed 4 years ago
Did you test 1.5.7 because it gave me an error when trying to install.
Please feel free to share the error message you gt when trying to install it.
pip3 install 'pyparsing<2'
Collecting pyparsing<2
Using cached pyparsing-1.5.7.tar.gz (939 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/yl/h3w94s910h1680sqbx3v9qv80000gp/T/pip-install-njn8ibtq/pyparsing/setup.py'"'"'; __file__='"'"'/private/var/folders/yl/h3w94s910h1680sqbx3v9qv80000gp/T/pip-install-njn8ibtq/pyparsing/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/yl/h3w94s910h1680sqbx3v9qv80000gp/T/pip-install-njn8ibtq/pyparsing/pip-egg-info
cwd: /private/var/folders/yl/h3w94s910h1680sqbx3v9qv80000gp/T/pip-install-njn8ibtq/pyparsing/
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/yl/h3w94s910h1680sqbx3v9qv80000gp/T/pip-install-njn8ibtq/pyparsing/setup.py", line 9, in <module>
from pyparsing import __version__ as pyparsing_version
File "/private/var/folders/yl/h3w94s910h1680sqbx3v9qv80000gp/T/pip-install-njn8ibtq/pyparsing/pyparsing.py", line 855
except ParseBaseException, err:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
You are using Python 3 and the syntax in pyparsing
is Python 2 specific. When using Python 2 this should work just fine.
You're right. As of right now we don't use any pyparsing features/arguments that are exclusive to version 2 or later.
@rotu FYI this caused a regression, see #287.
pyparsing.operatorPrecedence was deprecated in pyparsing 1.5.7 and removed in pyparsing 3
https://github.com/pyparsing/pyparsing/blob/master/CHANGES