DLL load error of fortran module imported to python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jtorppa
    New Member
    • Jun 2009
    • 3

    DLL load error of fortran module imported to python

    I have a f95 module (created with f2py) which I wish to import to a python code. Now the total number of array elements in the f95 code seems to be too large for python, since there is an error message:
    ImportError: DLL load failed: invalid access to memory location .
    How do I manage the memory to get the code working? I tried to read the python manuals, but can't get things working.
  • jtorppa
    New Member
    • Jun 2009
    • 3

    #2
    To be more exact, the fortran code can be compiled and run with no problem by itself, so the error probably is not due to system memory settings. And the program works also fine when imported to python IF I reduce the array sizes in the fortran code. With large arrays the error appears.
    The arrays are needed only inside the fortran code, so they are not input from or output to the Python script.

    Comment

    Working...