Questions tagged [f2py]

F2PY is a tool that provides an interface between the Python and Fortran programming languages.

F2PY is a tool that provides an interface between the and programming languages. F2PY is part of .

491 questions
0
votes
1 answer

python and f2py error - NameError: global name 'inputUtil" is not defined

I have compiled a fortran code in python using f2py (inputUtil.pyd). I import this function into my main python code and I pass two characters to this function (locationAID and locationBID) from a string. Here is the error message: >>> Traceback…
pete
  • 9
  • 1
0
votes
1 answer

Excluding a call to a subroutine from a commercial library

I have a fortran file with a lot of useful subroutines, and I want to make a Python interface to it using f2py. The problem arises because some fortran subroutines call the FFT subroutine from the NAG library (named c06ebf). When imported into…
0
votes
3 answers

Installing SciPy on Red Hat

I am trying to install the SciPy package on Red Hat Enterprise Linux Server release 6.3. However, it is failing. The version of Python I am using is 2.6, however it seems to require 2.4. Is there another version of SciPy that is compatible with 2.6?…
user1253952
  • 1,577
  • 8
  • 22
  • 34
0
votes
0 answers

Using F2py in distutils

I am using fortran programs within a python script, and trying to build and install it with a setup.py script, using numpy.distutils. However, I am not adept at knowing how to link in various code files, so I thought I'd ask the question here and…
StevenMurray
  • 742
  • 2
  • 7
  • 18
0
votes
1 answer

Problems with f2py: undefined references to module in subroutine

I am trying to compile a Fortran f90 file with f2py, to use in Python. The file is a subroutine that calls a module from another file. The module is basically for allocation. I can compile the module, using 'gfortran my_dec.f90' in the command…
LaurieW
  • 171
  • 1
  • 2
  • 6
0
votes
1 answer

f2py wrapper compilation error: setting shape of array

I'm having a problem with compiling via f2py. I have an f90 module with several subroutines in it. It has been compiling fine up to this point for use in a python script. However, now when I try to compile it and build it, it complains with this…
StevenMurray
  • 742
  • 2
  • 7
  • 18
-1
votes
1 answer

Python code after a call to f2py wrapped function does not execute

I'm trying to use some existing code for integrating delay differential equations in a python project (radar5 from this page ). I thought I had successfully wrapped the fortran code with f2py because I was able to call a fortran program and see…
Karsten
  • 1
  • 1
-1
votes
1 answer

missing required argument - 'NoneType' object is not subscriptable

I have some Python code, compiled with errors: def rad2_cv(m, n, c, type, x): eps = 10e-8; if type == 1: result = f_radial.rad_fun(0, m, n, c, x, eps) return result[2], result[3] elif type == -1: result = …
-1
votes
1 answer

Python Error : File ... spherical.py... import f_utils...ImportError: DLL load failed: The specified module could not be found

I am running some codes in python 2.7 with MIN-GW - gfortran of fortran77 codes and Visual Studio 2010.I installed all requirements with pip, so when I do this: python setup.py install everything is successful. f2py -c f_utils.for Creates…
-1
votes
3 answers

need to get f2py working, but don't know any fortran

I want to use function OPAC from this source code: http://opalopacity.llnl.gov/codes/xztrin21.f i don't uderstand the code very well, I just want to use it as Python module. I run the following: f2py -c xztrin21.f -m opal_opacity but I always get…
Tom83B
  • 2,059
  • 4
  • 18
  • 28
-3
votes
1 answer

f2py how do i fix Symbol not found errors such as ___kmpc_begin

I currently have the error 2): Symbol not found ___kmpc_begin. I have encountered other symbol not found errors but this message doesnt provide me any information on how to correct the problem. If it helps, I am compiling the code with ifort using…
CodeGuyRoss
  • 786
  • 1
  • 10
  • 23
1 2 3
32
33