[f2py] Pb under windows

Cedric cedric.arrabie at univ-pau.fr
Mon Apr 3 17:24:47 EEST 2006


Hi all,

For the 2 OS, python 2.4, f2py 2.45.241_1926

The code

	subroutine Psaturation(T,A,B,C,D,E,Psat)
 
	implicit none
 
	real*8	A,B,C,D,E,T,Psat
 
Cf2py intent(in) A,B,C,D,E,T
Cf2py intent(out) Psat
 
	Psat=dexp(A+B/T+C*dlog(T)+D*T**E)
 
	return
 
	end


Under ubuntu - linux

f2py -c -m thermo pvapsat.for (give me thermo.so)

>>> import thermo
>>> thermo.psaturation(1,2,3,4,5,6)
22026.465794806718
>>>

and work fine

Under Win2000 with Cygwin
f2py + Numeric installed and compiled from the source (no problem for 
this point)

f2py -c -m thermo pvapsat.for (give me thermo.dll)

>>> import thermo
>>> thermo.psaturation(1,2,3,4,5,6)
22026.465794806718
>>>

work fine too

but now when i include it on a project

on linux always ok, but on windows after copy of the 2 dll (cygwin1.dll and libpython2.4.dll on the project path),
when i launch my projet nothing happend except a freeze of the command line, no error message.

Maybe the problem is from the enviroment of execution : cygwin shell + 
python in a case, and directly from win + python for the project, if 
someone have an idea, or a tutorial to make (working) dll for windows...

Cheers

Cédric






More information about the f2py-users mailing list