Skip to content

Numpy failing to load in Cygwin64 #23

@realchrisolin

Description

@realchrisolin

This is an environment issue specific to Cygwin and can be closed. I'm only detailing it here (along with a fix) in case anyone else runs into this issue:

[pty3] ~  » python
Python 2.7.10 (default, Jun  1 2015, 18:05:38)
[GCC 4.9.2] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
    from . import add_newdocs
[+] Searching for Pokemon at location 38.9062466 -77.0434577y", line 13, in <module>
[-] looping: step 2 of 100add_newdoc
  File "/usr/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
    from .polynomial import *
  File "/usr/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/usr/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 51, in <module>
    from .linalg import *
  File "/usr/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: No such file or directory
[pty3] ~  » cygcheck /lib/python2.7/site-packages/numpy/linalg/lapack_lite.dll
C:\cygwin64\lib\python2.7\site-packages\numpy\linalg\lapack_lite.dll
  C:\cygwin64\bin\cygwin1.dll
    C:\WINDOWS\system32\KERNEL32.dll
      C:\WINDOWS\system32\ntdll.dll
      C:\WINDOWS\system32\KERNELBASE.dll
  C:\cygwin64\lib\lapack\cyglapack-0.dll
    C:\cygwin64\bin\cyggcc_s-seh-1.dll
    C:\cygwin64\bin\cyggfortran-3.dll
    C:\cygwin64\lib\lapack\cygblas-0.dll
  C:\cygwin64\bin\libpython2.7.dll
cygcheck: track_down: could not find cygquadmath-0.dll

[pty3] ~ » cp /usr/bin/cygquadmath-0.dll /lib/lapack

[pty3] ~  » cygcheck /lib/python2.7/site-packages/numpy/linalg/lapack_lite.dll
C:\cygwin64\lib\python2.7\site-packages\numpy\linalg\lapack_lite.dll
  C:\cygwin64\bin\cygwin1.dll
    C:\WINDOWS\system32\KERNEL32.dll
      C:\WINDOWS\system32\ntdll.dll
      C:\WINDOWS\system32\KERNELBASE.dll
  C:\cygwin64\lib\lapack\cyglapack-0.dll
    C:\cygwin64\bin\cyggcc_s-seh-1.dll
    C:\cygwin64\bin\cyggfortran-3.dll
      C:\cygwin64\bin\cygquadmath-0.dll
    C:\cygwin64\lib\lapack\cygblas-0.dll
  C:\cygwin64\bin\libpython2.7.dll
[pty3] ~/PokemonGo-SlackBot (branch:master*) » python
Python 2.7.10 (default, Jun  1 2015, 18:05:38)
[GCC 4.9.2] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions