[python-win32] ImportError: DLL load failed: The specified procedure could not be found.
Mark Hammond
mhammond at skippinet.com.au
Tue Jan 27 01:17:25 CET 2009
FYI, I wrote those Tortoise shell extensions too :) We recently moved to
the shell extension portion to C++ to avoid this exact problem. It is
likely that a similar error would be seen using *any* program which embeds
Python and displays a "file open" dialog - pythonwin obviously is such a
program.
Cheers,
Mark
--------------------------------------
From: Liu, Donald (H USA) [mailto:donald.liu at siemens.com]
Sent: Tuesday, 27 January 2009 9:41 AM
To: Vernon Cole
Cc: mhammond at skippinet.com.au; python-win32 at python.org
Subject: RE: [python-win32] ImportError: DLL load failed: The specified
procedure could not be found.
Vernon,
You solved my problem! I was using Bazaar 1.9
(bzr-setup-1.9.exe) previously. After upgrading to Bazaar 1.11, all the
problems disappeared. I'm sticking to Python 2.5 because that's what's
being used. Since I'm new to Python, I don't want to be using a different
version than the rest. Others are not using Pythonwin so they did not
experience this problem before.
Thanks for your help, and, to the broader community, for these wonderful
tools.
Donald
________________________________________
From: Vernon Cole [mailto:vernondcole at gmail.com]
Sent: Monday, January 26, 2009 11:44 AM
To: Liu, Donald (H USA)
Cc: mhammond at skippinet.com.au; python-win32 at python.org
Subject: Re: [python-win32] ImportError: DLL load failed: The specified
procedure could not be found.
Ahha!
You are not having a problem with Python, as such. You are having a
problem with Bazaar. I tried running bazaar from source some while ago, but
had to download a lot of extra modules for it, so I have gotten lazy and
just use the version from the windows installer. I am now running bazaar
1.11 alongside Python 2.6 with no problems. Download from
http://bazaar-vcs.org/Download
Also, unless you have a specific reason for using Python 2.5, I suggest that
you upgrade to 2.6.
--
Vernon
On Mon, Jan 26, 2009 at 12:17 PM, Liu, Donald (H USA)
<donald.liu at siemens.com> wrote:
Vernon,
Thanks for the tip, which I followed, but the result was not good yet. [I'm
inclined to think that there's something wrong with my PC at work, but it's
beyond me to figure out what. I upgraded to Windows XP Pro Service Pack 3.]
I downloaded python-2.5.4.msi from python.org, and
pywin32-212.win32-py2.5.exe from sourceforge.net, using the links you
provided. Then I installed python followed by pywin32. When I run
Pythonwin and try to open a file, I got the following (different) error
message:
PythonWin 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
>>> Traceback (most recent call last):
File "boot_com_servers.py", line 44, in <module>
File "tbzr.pyo", line 124, in <module>
File "tbzr.pyo", line 61, in get_all_com_classes
File "contextmenu.pyo", line 9, in <module>
ImportError: No module named shell
Redirecting output to win32trace remote collector
The files in system32 are
C:\Python25>dir /s \windows\system32\py*.dll
Volume in drive C is System
Volume Serial Number is F8F2-995F
Directory of C:\windows\system32
12/23/2008 03:10 PM 2,117,632 python25.dll
07/27/2008 03:27 PM 339,968 pythoncom25.dll
07/27/2008 03:23 PM 114,688 pywintypes25.dll
3 File(s) 2,572,288 bytes
The files in c:\python25 are
C:\Python25>dir /s py*.dll
Volume in drive C is System
Volume Serial Number is F8F2-995F
Directory of C:\Python25\Lib\site-packages\isapi
01/26/2009 11:05 AM 37,888 PyISAPI_loader.dll
1 File(s) 37,888 bytes
Directory of C:\Python25\Lib\site-packages\pywin32_system32
01/26/2009 11:05 AM 339,968 pythoncom25.dll
01/26/2009 11:05 AM 114,688 pywintypes25.dll
2 File(s) 454,656 bytes
Thanks,
Donald
________________________________________
From: Vernon Cole [mailto:vernondcole at gmail.com]
Sent: Monday, January 26, 2009 10:36 AM
To: Liu, Donald (H USA)
Cc: mhammond at skippinet.com.au; python-win32 at python.org
Subject: Re: [python-win32] ImportError: DLL load failed: The specified
procedure could not be found.
Donald:
I'm going to do a little information thing here...
Active Python is a package put together by ActiveState. It is a commercial
product (with some licensing restrictions) that has both commercial and
community support. You can find support for that package at
http://www.activestate.com/support/ .
As far as I know, it is simply a repackaging of two (perhaps more?) free
and open source packages, which you can download separately and which have
their own support mechanisms -- including the one you are using now.
Python is found at http://www.python.org/download/
and pywin32 is at http://sourceforge.net/projects/pywin32/
You might want to try downloading these original packages to see whether
your installation problems go away. In exchange for the additional
difficulty of downloading two packages, rather than only one, you have the
advantage of knowing that you will never have to pay for a redistribution
license.
--
Vernon Cole
On Mon, Jan 26, 2009 at 10:28 AM, Liu, Donald (H USA)
<donald.liu at siemens.com> wrote:
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.hammond at gmail.com]
Sent: Friday, January 23, 2009 8:20 PM
To: Liu, Donald (H USA)
Cc: python-win32 at 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.SecurityOffice at siemens.com
Thank you
_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
----------------------------------------------------------------------------
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.SecurityOffice at siemens.com
Thank you
----------------------------------------------------------------------------
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.SecurityOffice at siemens.com
Thank you
More information about the python-win32
mailing list