[issue47203] ImportError: DLL load failed while importing binascii: %1 is not a valid Win32 application.

Jeremy Kloth report at bugs.python.org
Sat Apr 2 16:02:47 EDT 2022


Jeremy Kloth <jeremy.kloth+python-tracker at gmail.com> added the comment:

This error will occur when there is a 64-bit/32-bit conflict.  Normally, Python extension modules are installed in architecture dependent locations, however user-installed modules (pip install) can share a path referred to as "user site".

A quick check from the command-line can give you its location:

  py -m site

A scan of the paths listed as USER_BASE and USER_SITE might reveal a binascii.pyd  which would be shadowing the normally built-in module.

Another source of conflict would be a PYTHONPATH environment variable, if set.

----------
nosy: +jkloth

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47203>
_______________________________________


More information about the Python-bugs-list mailing list