[f2py] (no subject)

Razibul Islam <tamal105-/[email protected]> Mon, 7 Jan 2013 07:13:21 -0800 (PST)
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
--===============2374813036723985391==
Content-Type: multipart/alternative; boundary="1036283588-2114335236-1357571601=:42558"

--1036283588-2114335236-1357571601=:42558
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Dear f2py users...=0AI am creating a GUI for a fortran code. But I cannot c=
ompile the the code from my GUI.It cannot overwrite the existing python mod=
ule. If I run the same code from the python console it overwrites the exist=
ing python module without any problem.I have used the following code=A0 whi=
ch generates the some information to run the next program.=0A=0A=0Aimport n=
umpy.f2py as f2py=0Afid =3D open('ellgen.f')=0Asource =3D fid.read()=0Afid.=
close()=0Af2py.compile(source, modulename =3D 'ellgen')=0A=0A=0A=0ASecondly=
, After running the program it just close the GUI or in case of ipython it =
quits ipython.=0A=0AI would highly appreciate any suggestion in this regard=
.=0A=0A=A0=0ATamal
--1036283588-2114335236-1357571601=:42558
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:ti=
mes new roman, new york, times, serif;font-size:12pt"><div id=3D"yiv1675398=
033"><div><div style=3D"color:#000;background-color:#fff;font-family:times =
new roman, new york, times, serif;font-size:12pt;"><div id=3D"yiv1675398033=
yui_3_7_2_15_1357573026972_49"><span id=3D"yiv1675398033yui_3_7_2_15_135757=
3026972_58">Dear f2py users...</span></div><div style=3D"color:rgb(0, 0, 0)=
;font-size:16px;font-family:times new roman, new york, times, serif;backgro=
und-color:transparent;font-style:normal;" id=3D"yiv1675398033yui_3_7_2_15_1=
357573026972_60"><span id=3D"yiv1675398033yui_3_7_2_15_1357573026972_58">I =
am creating a GUI for a fortran code. But I cannot compile the the code fro=
m my GUI.It cannot overwrite the existing python module. If I run the same =
code from the python console it overwrites the existing python module witho=
ut any problem.I have used the following code&nbsp; which generates the som=
e
 information to run the next program.<br></span></div><div id=3D"yiv1675398=
033yui_3_7_2_15_1357573026972_211" style=3D"color:rgb(0, 0, 0);font-size:16=
px;font-family:times new roman, new york, times, serif;background-color:tra=
nsparent;font-style:normal;"><br></div><div id=3D"yiv1675398033yui_3_7_2_15=
_1357573026972_219" style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:=
times new roman, new york, times, serif;background-color:transparent;font-s=
tyle:normal;">import numpy.f2py as f2py<br>fid =3D open('ellgen.f')<br>sour=
ce =3D fid.read()<br>fid.close()<br>f2py.compile(source, modulename =3D 'el=
lgen')<br><span id=3D"yiv1675398033yui_3_7_2_15_1357573026972_58"></span></=
div><div id=3D"yiv1675398033yui_3_7_2_15_1357573026972_216" style=3D"color:=
rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, s=
erif;background-color:transparent;font-style:normal;"><span id=3D"yiv167539=
8033yui_3_7_2_15_1357573026972_58"><br></span></div><div
 id=3D"yiv1675398033yui_3_7_2_15_1357573026972_203" style=3D"color:rgb(0, 0=
, 0);font-size:16px;font-family:times new roman, new york, times, serif;bac=
kground-color:transparent;font-style:normal;"><br><span id=3D"yiv1675398033=
yui_3_7_2_15_1357573026972_58"></span></div><div id=3D"yiv1675398033yui_3_7=
_2_15_1357573026972_206" style=3D"=0Acolor:rgb(0, 0, 0);font-size:16px;font=
-family:times new roman, new york, times, serif;background-color:transparen=
t;font-style:normal;"><span id=3D"yiv1675398033yui_3_7_2_15_1357573026972_5=
8">Secondly, After running the program it just close the GUI or in case of =
ipython it quits ipython.<br><br>I would highly appreciate any suggestion i=
n this regard.<br></span></div><div id=3D"yiv1675398033yui_3_7_2_15_1357573=
026972_51">&nbsp;</div><div>Tamal</div><div id=3D"yiv1675398033yui_3_7_2_15=
_1357573026972_54"></div></div></div></div></div></body></html>
--1036283588-2114335236-1357571601=:42558--


--===============2374813036723985391==
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

--===============2374813036723985391==--