Connecting Tech Pros Worldwide Help | Site Map

DLL load error of fortran module imported to python

  #1  
Old June 24th, 2009, 08:05 AM
Newbie
 
Join Date: Jun 2009
Posts: 2
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.
  #2  
Old June 25th, 2009, 09:23 AM
Newbie
 
Join Date: Jun 2009
Posts: 2

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 Threads
Thread Thread Starter Forum Replies Last Post
RE: NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py Blubaugh, David A. answers 0 September 20th, 2008 08:15 PM