I figured out the problem and how to resolve it.

ntldd by default only shows dll's which are DIRECTLY  required, so

  ntldd _cmd.pyd

in general gives an incomplete list.  The proper way to go about this is

  ntldd -R _cmd.pyd | grep mingw

and then copy all of the listed dll's to the same directory as the python binary. Copies of the dll's from the C:\windows\system32 are not needed.

Also there is an oddness in that some modules require

  import hashlib
  import (module_name)

rather than just

  import (module_name)

When this is seen messages like:

  ValueError: unsupported hash type sha256

appear. That only happens after all the dll dependencies for that module are resolved.

Regards,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to