delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/01/12/06:48:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DB85D3858416
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:content-language:from:to
:subject:content-transfer-encoding;
bh=jlA9ki6V3GQkshodJi13MDnFQI/VefGAaVDdM/omrEU=;
b=gpLce+7AkBSoDI/wmwObhPUDczbyput0uNC6FzrPx8IhSOmlpDA91kp438U8Qu5Jgj
wcXLxSKU7XH+kZc6r39Dw1huNMYhubDsUzQk+2+ad6KTyP/37pMrw38uzqMXxPYeMT5w
mRH2uKwdr4e14SmUj/JpqaTtjQ23vcxq+vlu8Wlh9IjkQPVYa797vk94lGbRylTy4Wis
EjJEAz3hSD/WHWBOVnc5w7XW/oCdSATNF/HLrQ2Y5nlZ1f8xxL9mwg97fUzWd9U77NOI
SOPGAmzvDN7MeLMLTXKDIeXrVAMv35BpiJRcAeALXJeiEvbB8BE+ffDOowM/eYRiXaWb
OyBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent
:content-language:from:to:subject:content-transfer-encoding;
bh=jlA9ki6V3GQkshodJi13MDnFQI/VefGAaVDdM/omrEU=;
b=meAUHbWOWeuzGMMkPT3hDI/7m2vREcumvH4RoG6PPlOKabmVT74w+aF7utjd74Pu8T
U5yfiDx/ud1L3pi+Yo75w9+XF9IrQwFiOHUDeomh5jv//+XGuP+yuAqgQxRmW7e0/6fC
ymgFqtPYzaDxEIUZ6VhKXPeznKP5XjR06HbrFxAWZOtpssGhuW9sU5aRmjLunJ7qtn2N
S6ir+HK5VgMjx6NL1xvrhjfpq0iDDjjmfs+PpXILVX694DbryXeFkrEhQuPt9LN8R0rm
4osCTwNlumKw714rf2C+6b6wmZq5f2wZSW9J3X3KEU4PyMhn1alQAiK/3Ud5+yHGh/wE
Y9xA==
X-Gm-Message-State: AOAM532fkBQSOQAV3+sG/LRQml8D9aTUARBtSPN/ji8Qkr2CJu3XyeXm
GtBBmqP3DrPxYSlWv5SWgjeLHVjs8dA=
X-Google-Smtp-Source: ABdhPJyFm8bwMePMt+5M95RyocfSumIEsZRcRFNW9tpt8fiUQVWUX/tpvbeKU7kfO9LG/7KrSx9MvA==
X-Received: by 2002:a17:90b:38cd:: with SMTP id
nn13mr8274806pjb.37.1641988068713;
Wed, 12 Jan 2022 03:47:48 -0800 (PST)
Message-ID: <e268afb1-432a-86e4-7073-dbc82a259201@gmail.com>
Date: Wed, 12 Jan 2022 20:47:45 +0900
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
From: ggl329 <ggl329 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: python-numpy (1.22.0-1) can't be imported
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi Marco,

I upgraded python39-numpy to 1.22.0-1, and failed to import numpy.
It seems that mtrand.cpython-39-x86_64-cygwin.dll does not have PyInit_mtrand.
Could you check if numpy can be imported in your environment?


$ python3.9
Python 3.9.9 (main, Dec  5 2021, 13:29:55)
[GCC 11.2.0] 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/python3.9/site-packages/numpy/__init__.py", line 155, in <module>
     from . import random
   File "/usr/lib/python3.9/site-packages/numpy/random/__init__.py", line 180, in <module>
     from . import _pickle
   File "/usr/lib/python3.9/site-packages/numpy/random/_pickle.py", line 1, in <module>
     from .mtrand import RandomState
ImportError: dynamic module does not define module export function (PyInit_mtrand)
>>>


== python39-numpy 1.22.0-1 ==
$ objdump.exe -x /usr/lib/python3.9/site-packages/numpy/random/mtrand.cpython-39-x86_64-cygwin.dll
(snip)
[Ordinal/Name Pointer] Table
         [   0] random_beta
         [   1] random_binomial
         [   2] random_bounded_bool_fill
         [   3] random_bounded_uint16_fill
         [   4] random_bounded_uint32_fill
         ...


== python39-numpy 1.21.4-1 ==
$ objdump.exe -x /usr/lib/python3.9/site-packages/numpy/random/mtrand.cpython-39-x86_64-cygwin.dll
(snip)
[Ordinal/Name Pointer] Table
         [   0] PyInit_mtrand
         [   1] __gcc_deregister_frame
         [   2] __gcc_register_frame
         [   3] __pyx_module_is_main_numpy__random__mtrand
         [   4] legacy_beta
         ...
## 1.21.4-1 has PyInit_mtrand.


Regards,

-- 
   ggl329

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019