Re: [f2py] crackfortran.py

Hariprasath Ganesan <[email protected]> Tue, 5 Mar 2013 15:40:42 +0100
Newsgroups gmane.comp.python.f2py.user
Message-ID <CA+hFtnVR9ByNFQ03yp9jYSBBYpjVhLpARnST3H-m2YWnnJCJMA@mail.gmail.com>
--===============0309000610237520871==
Content-Type: multipart/alternative; boundary=047d7bea40f041577c04d72e75ad

--047d7bea40f041577c04d72e75ad
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I guess,  f2py is not get installed successfully....also could be a reason
from which directory you execute the command....simplest fix to check for
correct installation is to open a terminal and type f2py...if u get some
relavant version and other details...its fine

Regards,
Hari.

On Tue, Mar 5, 2013 at 3:10 PM, Gergely Buday <[email protected]> wrote:

> Hi there,
>
> I am trying to compile an amateur radio program that uses f2py. I get
> the following error message:
>
> Traceback (most recent call last):
>   File "/usr/local/bin/f2py", line 3, in <module>
>     import f2py2e
>   File "/usr/local/lib/python2.7/dist-packages/f2py2e/__init__.py",
> line 10, in <module>
>     import f2py2e
>   File "/usr/local/lib/python2.7/dist-packages/f2py2e/f2py2e.py", line
> 26, in <module>
>     import crackfortran
>   File "/usr/local/lib/python2.7/dist-packages/f2py2e/crackfortran.py",
> line 1586
>     as=b['args']
>      ^
>
> Googling a bit I have found that the problem is that 'as' is a
> reserved keyword in later Python versions so it is not allowed to use
> it as a variable name. What can I do to fix this? My Python version is
> Python 2.7.3 and I use Ubuntu 12.04. I tried the built-in python-numpy
> and tha latest tgz from the f2py site as well.
>
> Or, is this a known problem and there is a known fix?
>
> - Gergely
>
> _______________________________________________
> f2py-users mailing list
> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users
>

--047d7bea40f041577c04d72e75ad
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>I guess,=A0 f2py is not get installed successfully....also could=
 be a reason from which directory you execute the command....simplest fix t=
o check for correct installation is to open a terminal and type f2py...if u=
 get some relavant version and other details...its fine<br>
<br>Regards,<br>Hari.<br><br><div class=3D"gmail_quote">On Tue, Mar 5, 2013=
 at 3:10 PM, Gergely Buday <span dir=3D"ltr">&lt;<a href=3D"mailto:gbuday@g=
mail.com" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex">
Hi there,<br>
<br>
I am trying to compile an amateur radio program that uses f2py. I get<br>
the following error message:<br>
<br>
Traceback (most recent call last):<br>
=A0 File &quot;/usr/local/bin/f2py&quot;, line 3, in &lt;module&gt;<br>
=A0 =A0 import f2py2e<br>
=A0 File &quot;/usr/local/lib/python2.7/dist-packages/f2py2e/__init__.py&qu=
ot;,<br>
line 10, in &lt;module&gt;<br>
=A0 =A0 import f2py2e<br>
=A0 File &quot;/usr/local/lib/python2.7/dist-packages/f2py2e/f2py2e.py&quot=
;, line<br>
26, in &lt;module&gt;<br>
=A0 =A0 import crackfortran<br>
=A0 File &quot;/usr/local/lib/python2.7/dist-packages/f2py2e/crackfortran.p=
y&quot;,<br>
line 1586<br>
=A0 =A0 as=3Db[&#39;args&#39;]<br>
=A0 =A0 =A0^<br>
<br>
Googling a bit I have found that the problem is that &#39;as&#39; is a<br>
reserved keyword in later Python versions so it is not allowed to use<br>
it as a variable name. What can I do to fix this? My Python version is<br>
Python 2.7.3 and I use Ubuntu 12.04. I tried the built-in python-numpy<br>
and tha latest tgz from the f2py site as well.<br>
<br>
Or, is this a known problem and there is a known fix?<br>
<br>
- Gergely<br>
<br>
_______________________________________________<br>
f2py-users mailing list<br>
<a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br>
<a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_blank=
">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><br>
</blockquote></div><br>

--047d7bea40f041577c04d72e75ad--


--===============0309000610237520871==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
f2py-users mailing list
f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users

--===============0309000610237520871==--