[MacPorts] #14171: f2py error when compiling Fortran module block
#14171: f2py error when compiling Fortran module block ---------------------------------+------------------------------------------ Reporter: luomo1138@yahoo.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | ---------------------------------+------------------------------------------ Hello, While trying use f2py (py25-numpy) to compile some Fortran code containing a module block, I received this error message: Re: TypeError: cannot concatenate 'str' and 'list' I did a quick search and found this discussion: "http://cens.ioc.ee/pipermail/f2py-users/2007-November/001487.html" The suggested fix was to modify line 1222 of "/opt/local/lib/python2.5/site-packages/numpy/f2py/rules.py" OLD:
for l in '\n\n'.join(funcwrappers2)+'\n'.split('\n'):
NEW:
for l in ('\n\n'.join(funcwrappers2)+'\n').split('\n'):
I have made this modification, and it works for me. Jim -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14171> MacPorts </projects/macports> Ports system for Mac OS
#14171: numpy: f2py error when compiling Fortran module block ----------------------------------+----------------------------------------- Reporter: luomo1138@yahoo.com | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ----------------------------------+----------------------------------------- Changes (by ram@macports.org): * owner: macports-tickets@lists.macosforge.org => ram@macports.org * status: new => assigned * summary: f2py error when compiling Fortran module block => numpy: f2py error when compiling Fortran module block * milestone: => Port Bugs -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14171#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14171: numpy: f2py error when compiling Fortran module block ----------------------------------+----------------------------------------- Reporter: luomo1138@yahoo.com | Owner: ram@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: ----------------------------------+----------------------------------------- Changes (by ram@macports.org): * status: assigned => closed * resolution: => fixed Comment: patch applied in r33719, thanks -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14171#comment:2> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts