[python-win32] ImportError: DLL load failed: The specified procedure could not be found.

Mark Hammond skippy.hammond at gmail.com
Sat Jan 24 05:19:40 CET 2009


On 24/01/2009 11:03 AM, Liu, Donald (H USA) wrote:
> Hi.  I'm new to Python.  Just downloaded
> ActivePython-2.5.2.2-win32-x86.msi and installed under "Microsoft
> Windows XP Professional Version 2002 Service Pack 2".
>
> When I click Start =>  Programs =>  ActiveState ActivePython2.5 =>
> Pythonwin Editor, I got the "PythonWin" window opened with no problem.
> However, when I try to open a file (by either typing ctrl+o, or using
> the "open file icon", I run into the following error message:
>
> PythonWin 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit
> (Intel)] on win32.
> Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
> for further copyright information.
>>>> Traceback (most recent call last):
>    File "boot_com_servers.py", line 21, in<module>
>    File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in<module>
>      pywintypes.__import_pywin32_system_module__("pythoncom", globals())
>    File "C:\Python25\Lib\site-packages\win32\Lib\pywintypes.py", line 98,
> in __import_pywin32_system_module__
>      ('.dll', 'rb', imp.C_EXTENSION))
> ImportError: DLL load failed: The specified procedure could not be
> found.
>
> Others seem to have ran into this problem before but I couldn't locate a
> solution.

Check if you have copies of pywintypes25.dll and pythoncom25.dll in your 
system32 directory, and if so, that they are identical to the ones in 
your Python directory.  If they are not, update the system32 ones with 
the python ones.

Cheers,

Mark


More information about the python-win32 mailing list