win32api and win32ui import error

Mark Hammond MHammond at skippinet.com.au
Sun Apr 18 19:24:04 EDT 1999


hj_ka at my-dejanews.com wrote in message <7fbcpq$2jb$1 at 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.







More information about the Python-list mailing list