Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14171 closed defect (fixed)

numpy: f2py error when compiling Fortran module block

Reported by: luomo1138@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

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

Change History (3)

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to ram@…
Status: newassigned
Summary: f2py error when compiling Fortran module blocknumpy: f2py error when compiling Fortran module block

comment:2 Changed 16 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed

patch applied in r33719, thanks

comment:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.