Connecting Tech Pros Worldwide Help | Site Map

DLL load error of fortran module imported to python

Newbie
 
Join Date: Jun 2009
Posts: 2
#1: Jun 24 '09
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.
Newbie
 
Join Date: Jun 2009
Posts: 2
#2: Jun 25 '09

re: DLL load error of fortran module imported to python


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.
Reply


Similar Python bytes