public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Erik Bray <erik.m.bray@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Numpy 1.12.1 setup issue (targetting Python 3.6.1) from Cygwin 2.8.0
Date: Tue, 25 Apr 2017 18:07:00 -0000	[thread overview]
Message-ID: <CAOTD34YQA4=VyCuRfs+qmC=bEx5Jy7nN8nDQQ6-+Z=X=9xQd3Q@mail.gmail.com> (raw)
In-Reply-To: <1492423280653-133510.post@n5.nabble.com>

On Mon, Apr 17, 2017 at 12:01 PM, Kptain <kaptain.biwouak@gmail.com> wrote:
> I have installed python-dev package on Cygwin.
>
> It seems to be better as now I am able to build wheels for collected
> packages: numpy
>
> $ pip3 install numpy
> Collecting numpy
> Using cached numpy-1.12.1.zip
> Building wheels for collected packages: numpy
> Running setup.py bdist_wheel for numpy ... done
> Stored in directory:
> /cygdrive/d/ARCHITECTURE/.cache/pip/wheels/50/b5/d0/3994af801e0786dfb41a9856ddf85d69c54f233e749935d536
> Successfully built numpy
> Installing collected packages: numpy
> Successfully installed numpy-1.12.1
> <<
>
> No issue detected also from from pip checker:
>
> $ pip3 check numpy
> No broken requirements found.
> <<
>
> However, I am still not able to run my numpy sample script:
>
> (short extract)
> import numpy as np
>
> a = np.array([1,2,3,4])
> print(a)
>
> python3 numpy_sample.py
> Traceback (most recent call last):
> File "numpy_sample.py", line 1, in
> import numpy as np
> File
> "/cygdrive/d/GFMWK_NEXT/base/cygwin/lib/python3.6/site-packages/numpy/init.py",
> line 142, in
> from . import add_newdocs
> File
> "/cygdrive/d/GFMWK_NEXT/base/cygwin/lib/python3.6/site-packages/numpy/add_newdocs.py",
> line 13, in
> from numpy.lib import add_newdoc
> File
> "/cygdrive/d/GFMWK_NEXT/base/cygwin/lib/python3.6/site-packages/numpy/lib/init.py",
> line 18, in
> from .polynomial import *
> File
> "/cygdrive/d/GFMWK_NEXT/base/cygwin/lib/python3.6/site-packages/numpy/lib/polynomial.py",
> line 20, in
> from numpy.linalg import eigvals, lstsq, inv
> File
> "/cygdrive/d/GFMWK_NEXT/base/cygwin/lib/python3.6/site-packages/numpy/linalg/init.py",
> line 51, in
> from .linalg import *
> File
> "/cygdrive/d/GFMWK_NEXT/base/cygwin/lib/python3.6/site-packages/numpy/linalg/linalg.py",
> line 29, in
> from numpy.linalg import lapack_lite, _umath_linalg
> ImportError: No such file or directory
> <<
>
> I am not also able to find any lapack library for python, except cygwin
> packages below also installed:
> fort77
> libopenblas
> liblapack0
> liblapack-devel
>
> Then, It is not clear what is missing : other cygwin package or python3
> dependency as pip checker highlights nothing missing.
>
> Thanks again for your help,

I've just started having this problem too.  There appears to be a bug
in the latest version of the liblapack0 package, because the import
lib liblapack.dll.a lists the lapack DLL name as "cyglapack.dll", when
it should be "cyglapack-0.dll".

Copying /lib/lapack/cyglapack-0.dll to /lib/lapack/cyglapack.dll works
as a workaround...

Thanks,
Erik

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2017-04-25 16:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-16 12:44 Kptain
2017-04-16 18:22 ` Marco Atzeri
2017-04-16 18:24 ` Kptain
2017-04-16 19:03   ` Eliot Moss
2017-04-17 17:59     ` Kptain
2017-04-25 18:07       ` Erik Bray [this message]
2017-04-26  1:51         ` Eliot Moss
2017-04-26  8:19           ` Brian Inglis
2017-04-26  9:20             ` Eliot Moss
2017-04-26 15:21             ` Kptain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOTD34YQA4=VyCuRfs+qmC=bEx5Jy7nN8nDQQ6-+Z=X=9xQd3Q@mail.gmail.com' \
    --to=erik.m.bray@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).