[MacPorts] #51369: py34-parsing @2.1.2 build failure - known upstream bug

MacPorts noreply at macports.org
Wed May 11 11:48:30 PDT 2016


#51369: py34-parsing @2.1.2 build failure - known upstream bug
-----------------------------------+---------------------------------------
 Reporter:                         |      Owner:  macports-tickets@…
  diazona+macportstrac@…           |     Status:  new
     Type:  defect                 |  Milestone:
 Priority:  Normal                 |    Version:  2.3.4
Component:  ports                  |       Port:  py34-parsing py33-parsing
 Keywords:                         |
-----------------------------------+---------------------------------------
 Building pyparsing 2.1.2 for Python 3.4 fails with an `AttributeError` as
 shown below. According to a couple sources I found,
 [https://sourceforge.net/p/pyparsing/bugs/95/] (upstream bug tracker) and
 [https://github.com/matplotlib/matplotlib/issues/6399], this is a known
 incompatibility between this version of pyparsing and Python 3.3/3.4.
 Reportedly the next version of pyparsing, 2.1.3, contains a fix, but it
 seems not to be in MacPorts - I ''just'' updated the tree to check.

 If all this is correct, the obvious fix would be to either add pyparsing
 2.1.3 to the tree, or block `py34-parsing at 2.1.2` and `py33-parsing at 2.1.2`
 (if that's possible) until version 2.1.3 can be added.

 Traceback follows, excerpted from the attached build log:

 {{{
 :info:build Traceback (most recent call last):
 :info:build   File "setup.py", line 9, in <module>
 :info:build     from pyparsing import __version__ as pyparsing_version
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 parsing/py34-parsing/work/pyparsing-2.1.2/pyparsing.py", line 3478, in
 <module>
 :info:build     _escapedPunc = Word( _bslash, r"\[]-*.$+^?()~ ", exact=2
 ).setParseAction(lambda s,l,t:t[0][1])
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 parsing/py34-parsing/work/pyparsing-2.1.2/pyparsing.py", line 948, in
 setParseAction
 :info:build     self.parseAction = list(map(_trim_arity, list(fns)))
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 parsing/py34-parsing/work/pyparsing-2.1.2/pyparsing.py", line 808, in
 _trim_arity
 :info:build     this_line = extract_stack()[-1]
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 parsing/py34-parsing/work/pyparsing-2.1.2/pyparsing.py", line 793, in
 extract_stack
 :info:build     return [(frame_summary.filename, frame_summary.lineno)]
 :info:build AttributeError: 'tuple' object has no attribute 'filename'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/51369>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list