[Numpy-discussion] Error importing numpy in cygwin

Gabriella Turek g.turek at niwa.co.nz
Mon Apr 11 21:25:17 EDT 2011

Hello I'm working with cygwin 1.7.9. I've installed python 2.6 from the cygwin distro. I've also installed nympy from the distro (v. 1.4.1), and when that failed, I tried to installed directly form source (v. 1.5.1) 
In both cases when I try to run a script that imports numpy (including running the numpy tests) I get the following
error message:


>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/numpy/__init__.py", line 154, in <modul
    import ctypeslib
  File "/usr/lib/python2.6/site-packages/numpy/ctypeslib.py", line 60, in <modul
    import ctypes
  File "/usr/lib/python2.6/ctypes/__init__.py", line 439, in <module>
    pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2])
  File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: No such file or directory

Any ideas?

Please consider the environment before printing this email.

NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.

More information about the NumPy-Discussion mailing list