Bug 174578 - devel/py-simpleparse is old, does not work with Python 2.7.3
Summary: devel/py-simpleparse is old, does not work with Python 2.7.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ruslan Makhmatkhanov
Depends on:
Reported: 2012-12-19 18:40 UTC by mvharding
Modified: 2012-12-19 20:01 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description mvharding 2012-12-19 18:40:00 UTC
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


Use the more current version
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
Comment 1 Edwin Groothuis freebsd_committer 2012-12-19 18:40:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Ruslan Makhmatkhanov freebsd_committer 2012-12-19 19:57:19 UTC
Responsible Changed
From-To: freebsd-python->rm

I will take it.
Comment 3 Ruslan Makhmatkhanov freebsd_committer 2012-12-19 20:01:28 UTC
State Changed
From-To: open->closed

The port has been updated to latest version. Thanks for reporting!