[Tutor] [tutor] how to call GSL function from python using ctype

Kimbol Zhang zchunbo at hotmail.com
Mon Apr 28 07:04:28 CEST 2008


i'm trying to call the function from GSL by ctype , the interface.

while it seems i need to install some package from GSL.

ef=cdll.libgsl.gsl_sf_erf
above line gives below error :

 ef=cdll.libgsl.gsl_sf_erf
  File "C:\Python25\lib\ctypes\__init__.py", line 423, in __getattr__
    dll = self._dlltype(name)
  File "C:\Python25\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

do i need to install sth? i already installed GnuWin32 and gsl-1.8

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080428/a7f35273/attachment.htm>


More information about the Tutor mailing list