<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Hi Mark,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thank you for your reply. I copied
pywintypes26.dll and pythoncom26 </span><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> </span><span><font size="3">next to python.exe. and still got the same error message. I printed out the sys.path and it </font>includes xx\python, xx\python\lib, xx\python\lib\site-packages,xx</span>\python\lib\site-packages\win32, xx\python\lib\site-packages\win32\ lib, and xx\python\lib\site-packages\Pythonwin. </div><div><br></div><div>Regards,</div><div>Jane</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Mark Hammond <skippy.hammond@gmail.com><br>
<b><span style="font-weight: bold;">To:</span></b> Jane Chen <janechen_1979@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "python-win32@python.org" <python-win32@python.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 12, 2012 6:39 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [python-win32] ImportError: DLL load failed<br> </font> </div> <br>
On 13/07/2012 10:45 AM, Jane Chen wrote:<br>> Hi all,<br>><br>> I would like to add python win32 to Portable Python distribution with<br>> PyGTK for Windows<br>> http://fnch.users.sourceforge.net/portablepygtkwindows.html<br>> I installed the pywin32 in the python\Lib\site-packages folder. PC #1<br>> can find win32api.pyd. After that, I copied the whole portable python<br>> distribution folder to PC#2. I got the following message:<br>> import win32file, win32api<br>> ImportError: DLL load failed: The specified module could not be found.<br>><br>> Can anyone please help me with this issue?<br><br>I'm guessing that pywintypes27.dll and pythoncom27.dll aren't anywhere <br>on the PATH on PC#2 - try copying them next to python.exe.<br><br>HTH,<br><br>Mark<br><br>><br>> OS: win xp<br>> version: pywin32-217<br>><br>> Thanks,<br>> Jane<br>><br>><br>>
_______________________________________________<br>> python-win32 mailing list<br>> <a ymailto="mailto:python-win32@python.org" href="mailto:python-win32@python.org">python-win32@python.org</a><br>> http://mail.python.org/mailman/listinfo/python-win32<br>><br><br><br><br> </div> </div> </div></body></html>