Hi Mark, Thanks for your reply. I ran "dir c:\Windows\system32\py*.dll", and got the following:
C:\>dir Windows\system32\py*.dll Volume in drive C is System Volume Serial Number is F8F2-995F Directory of C:\Windows\system32 03/27/2008 06:12 PM 2,117,632 python25.dll 03/27/2008 06:13 PM 323,584 pythoncom25.dll 03/27/2008 06:13 PM 98,304 pywintypes25.dll 3 File(s) 2,539,520 bytes 0 Dir(s) 12,925,677,568 bytes free Looks like there's only one set of these files in the system32 directory. By the way, I only had problem with installation on the PC at work. My PC at home, which also has Windows XP, runs ActivePython with no problem. Unfortunately it's the PC at work that I'd like to make the installation work ... Thanks again, Donald -----Original Message----- From: Mark Hammond [mailto:skippy.hamm...@gmail.com] Sent: Friday, January 23, 2009 8:20 PM To: Liu, Donald (H USA) Cc: python-win32@python.org Subject: Re: [python-win32] ImportError: DLL load failed: The specified procedure could not be found. 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 ---------------------------------------------------------------------------- This message and any included attachments are from Siemens Medical Solutions and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail with a copy to central.securityoff...@siemens.com Thank you _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32