Message100225
I am user 11943. OS is Windows Vista Ultimate. I have followed the instructions on how to use f2py and get this error when I try it (is this a known bug? It appears that there is bug in f2py):
C:\Python26\Scripts>python f2py.py
Traceback (most recent call last):
File "f2py.py", line 3, in <module>
import f2py2e
File "C:\Python26\lib\site-packages\f2py2e\__init__.py", line 10, in <module>
import f2py2e
File "C:\Python26\lib\site-packages\f2py2e\f2py2e.py", line 26, in <module>
import crackfortran
File "C:\Python26\lib\site-packages\f2py2e\crackfortran.py", line 1586
as=b['args']
^
SyntaxError: invalid syntax
I have also tried the example to create a fortran module for python and get this error:
C:\Python26\Scripts>python f2py.py -c --fcompiler=gnu95 --compiler=mingw32 -lmsvcr71 -m cep cep.for
Traceback (most recent call last):
File "f2py.py", line 3, in <module>
import f2py2e
File "C:\Python26\lib\site-packages\f2py2e\__init__.py", line 10, in <module>
import f2py2e
File "C:\Python26\lib\site-packages\f2py2e\f2py2e.py", line 26, in <module>
import crackfortran
File "C:\Python26\lib\site-packages\f2py2e\crackfortran.py", line 1586
as=b['args']
^
SyntaxError: invalid syntax
Additionally I use the Lahey/Fujitsu 95 compiler. Do I just replace the gnu95 with lahey?
Also Is the msvrc71.dll file the correct one to use? I use MSVC VS 2009, which uses msvc90.dll. Should I use it instead? |
File name |
Uploaded |
unnamed
|
PeterJones,
2010-02-28.22:45:26
|
|
Date |
User |
Action |
Args |
2010-02-28 22:45:29 | PeterJones | set | recipients:
+ PeterJones |
2010-02-28 22:45:27 | PeterJones | link | issue8031 messages |
2010-02-28 22:45:27 | PeterJones | create | |
|