public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* python-numpy (1.22.0-1) can't be imported
@ 2022-01-12 11:47 ggl329
  2022-01-12 22:16 ` Marco Atzeri
  0 siblings, 1 reply; 9+ messages in thread
From: ggl329 @ 2022-01-12 11:47 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-02-06 17:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 11:47 python-numpy (1.22.0-1) can't be imported ggl329
2022-01-12 22:16 ` Marco Atzeri
2022-01-14  2:04   ` airplanemath
2022-01-18 20:55     ` Marco Atzeri
2022-01-22  1:04       ` Masamichi Hosoda
2022-01-22  5:24         ` Marco Atzeri
2022-01-22 10:16           ` Masamichi Hosoda
2022-01-23  9:42             ` Masamichi Hosoda
2022-02-06 17:35             ` airplanemath

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).