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