By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,996 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,996 IT Pros & Developers. It's quick & easy.

DLL load error of fortran module imported to python

P: 3
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.
Jun 24 '09 #1
Share this Question
Share on Google+
1 Reply

P: 3
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.
Jun 25 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.