Re: Windows scripting can't find _ctypes
Bob Kline <[email protected]> Mon, 19 Dec 2022 10:17:52 -0500
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Message-ID | <CAGjKmVrz2f4nhfDfWTzMLR9pnhEeuahB3D0N=OgErjXFFkf8LA@mail.gmail.com> |
On Mon, Dec 19, 2022 at 9:40 AM Bob Kline <[email protected]> wrote: > .... > Anyone else stumbled onto this problem? I found a solution. If I add e:\Python\DLLs to the PYTHONPATH environment variable, Windows script is able to import the ctypes module. I would appear that something has changed in the communication between Python and the pywin32 package, as I didn't have to do that previously, and I assume that the change was introduced by the CPython team, as I'm running the same version of pywin32 (305) now as I was before the Python upgrade. Hope this helps someone else. Cheers, Bob