New submission from Peter Jones <pjon...@hughes.net>:

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?

----------
files: unnamed
messages: 100225
nosy: PeterJones
severity: normal
status: open
title: Can't get f2py to work at all
Added file: http://bugs.python.org/file16402/unnamed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8031>
_______________________________________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18882">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I am user 11943.&nbsp;OS is Windows Vista 
Ultimate.&nbsp;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):</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>C:\Python26\Scripts&gt;python f2py.py<BR>Traceback 
(most recent call last):<BR>&nbsp; File "f2py.py", line 3, in 
&lt;module&gt;<BR>&nbsp;&nbsp;&nbsp; import f2py2e<BR>&nbsp; File 
"C:\Python26\lib\site-packages\f2py2e\__init__.py", line 10, in 
&lt;module&gt;<BR>&nbsp;&nbsp;&nbsp; import f2py2e<BR>&nbsp; File 
"C:\Python26\lib\site-packages\f2py2e\f2py2e.py", line 26, in 
&lt;module&gt;<BR>&nbsp;&nbsp;&nbsp; import crackfortran<BR>&nbsp; File 
"C:\Python26\lib\site-packages\f2py2e\crackfortran.py", line 
1586<BR>&nbsp;&nbsp;&nbsp; as=b['args']<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
^<BR>SyntaxError: invalid syntax</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I have also tried the example to create a fortran 
module for python and get this error:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>C:\Python26\Scripts&gt;python f2py.py -c 
--fcompiler=gnu95 --compiler=mingw32 -lmsvcr71 -m cep cep.for</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Traceback (most recent call last):<BR>&nbsp; File 
"f2py.py", line 3, in &lt;module&gt;<BR>&nbsp;&nbsp;&nbsp; import 
f2py2e<BR>&nbsp; File "C:\Python26\lib\site-packages\f2py2e\__init__.py", line 
10, in &lt;module&gt;<BR>&nbsp;&nbsp;&nbsp; import f2py2e<BR>&nbsp; File 
"C:\Python26\lib\site-packages\f2py2e\f2py2e.py", line 26, in 
&lt;module&gt;<BR>&nbsp;&nbsp;&nbsp; import crackfortran<BR>&nbsp; File 
"C:\Python26\lib\site-packages\f2py2e\crackfortran.py", line 
1586<BR>&nbsp;&nbsp;&nbsp; as=b['args']<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
^<BR>SyntaxError: invalid syntax</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Additionally I use the Lahey/Fujitsu 95 compiler. 
Do I just replace the gnu95 with lahey? </FONT></DIV>
<DIV><FONT size=2 face=Arial>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?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV></BODY></HTML>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to