Date: Wed, 19 Dec 2012 18:38:02 GMT From: Mike Harding <mvharding@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/174578: devel/py-simpleparse is old, does not work with Python 2.7.3 Message-ID: <201212191838.qBJIc2xZ054595@red.freebsd.org> Resent-Message-ID: <201212191840.qBJIe04o001250@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 174578 >Category: ports >Synopsis: devel/py-simpleparse is old, does not work with Python 2.7.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 19 18:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Mike Harding >Release: 9.1 >Organization: AOL >Environment: FreeBSD bsd.mvh 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r244435: Wed Dec 19 06:48:39 PST 2012 root@bsd.mvh:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I installed devel/py-simpleparse, the port install an old version, 2.1.0a3, which does not work with Python 2.7.3 - 'with' is a reserved word apparently for 2.7.3. There is a newer version, 2.1.1, which does not have this issue, available at http://pypi.python.org/pypi/SimpleParse >How-To-Repeat: # cd /usr/ports/devel/py-simpleparse # make install .. $ python /usr/local/lib/python2.7/site-packages/simpleparse/examples/simpleexample.py python /usr/local/lib/python2.7/site-packages/simpleparse/examples/simpleexample.py Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/simpleparse/examples/simpleexamp\ le.py", line 28, in <module> from simpleparse.parser import Parser File "/usr/local/lib/python2.7/site-packages/simpleparse/parser.py", line 2, \ in <module> from simpleparse import baseparser, simpleparsegrammar, common File "/usr/local/lib/python2.7/site-packages/simpleparse/baseparser.py", line\ 2, in <module> from simpleparse.stt.TextTools.TextTools import * File "/usr/local/lib/python2.7/site-packages/simpleparse/stt/TextTools/__init\ __.py", line 9, in <module> from TextTools import * File "/usr/local/lib/python2.7/site-packages/simpleparse/stt/TextTools/TextTo\ ols.py", line 170 def replace(text,what,with,start=0,stop=None, ^ SyntaxError: invalid syntax >Fix: Use the more current version >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212191838.qBJIc2xZ054595>