Mailing List Archive

win32api and win32ui import error
hj_ka@my-dejanews.com wrote in message <7fbcpq$2jb$1@nnrp1.dejanews.com>...
>>>> import win32api
>
>"exceptions.ImportError: DLL load failed: The process cannot access
>the file because it is being used by another process."

This is a stragne one. Never ever seen anything like this.

First step: Does "import pywintypes" work? If not, the problem is related
to "pywintypes15.dll", otherwise the problem is related to win32api.pyd. My
guess is the former, as win32ui fails in the same way.

Only thing I can suggest is removing pywintypes15.dll from the system
directory, then re-extracting it using winzip from win32all-124.exe.

That is the only thing I can think off. The error message implies some
other process has it open for "write" - or it is corrupted in some way?

Mark.