Paul, Thanks that worked great. But, I don't understand what you mean by the import hook doesn't work properly. The .pyd files were in the site-packages subfolders so why couldn't Python find them?
Thanks, John Freking From: Paul Keating [mailto:keat...@acm.org] Sent: Saturday, July 24, 2010 6:26 AM To: Freking John Subject: Re: [python-win32] pywin32-214 DLL install error You're on the right track with your focus on .dlls but I'd say the loader can't find a .pyd (which is a .dll really) that win32api wants. A brute-force solution is to search for win32*.pyd and *winxp*.pyd in python26 and subtree (which will be in site-packages\win32 and site-packages\pythonwin), and copy them next to python.exe. It should be a total of 30 files. This is klugy and ugly but it may work. (It's also easy to back out if it doesn't work!) I support an embedded-Python environment where the vendor's import hook that doesn't quite work properly with packages, so I have to do that routinely. If it does work then you can ask again here for a tidier solution. Paul Keating ----- Original Message ----- From: Freking John<mailto:frekingjo...@johndeere.com> To: 'python-win32@python.org'<mailto:'python-win32@python.org'> Sent: Thursday, July 22, 2010 5:01 AM Subject: [python-win32] pywin32-214 DLL install error Hi, I'm running XP SP3 and Python 2.6.2 and I'm trying to install pywin32-214 but it fails to load a DLL. The following is the error message I get at the end of the install. Traceback (most recent call last): File "<string>", line 601, in <module> File "<string>", line 313, in install ImportError: DLL load failed: The specified module could not be found. When I try to use the module in a python program I get the following error. Traceback (most recent call last): File "C:\WorkArea\Python\excel2007", line 2, in <module> import win32com.client as win32 File "C:\Python26\lib\win32com\__init__.py", line 5, in <module> import win32api, sys, os ImportError: DLL load failed: The specified module could not be found. >>> I have tried to uninstall and reinstall install pywin32 but that didn't work. And I have tried moving two DLLs, Pythoncom26.dll and PyWinTypes26.dll, into the system32 directory which also didn't work. Thanks, John Freking ________________________________ _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32