[python-win32] ImportError: DLL load failed
Jane Chen
janechen_1979 at yahoo.com
Fri Jul 13 19:07:46 CEST 2012
Hi Mark,
Thank you for your reply. I copied pywintypes26.dll and pythoncom26 next to python.exe. and still got the same error message. I printed out the sys.path and it includes xx\python, xx\python\lib, xx\python\lib\site-packages,xx\python\lib\site-packages\win32, xx\python\lib\site-packages\win32\ lib, and xx\python\lib\site-packages\Pythonwin.
Regards,
Jane
________________________________
From: Mark Hammond <skippy.hammond at gmail.com>
To: Jane Chen <janechen_1979 at yahoo.com>
Cc: "python-win32 at python.org" <python-win32 at python.org>
Sent: Thursday, July 12, 2012 6:39 PM
Subject: Re: [python-win32] ImportError: DLL load failed
On 13/07/2012 10:45 AM, Jane Chen wrote:
> Hi all,
>
> I would like to add python win32 to Portable Python distribution with
> PyGTK for Windows
> http://fnch.users.sourceforge.net/portablepygtkwindows.html
> I installed the pywin32 in the python\Lib\site-packages folder. PC #1
> can find win32api.pyd. After that, I copied the whole portable python
> distribution folder to PC#2. I got the following message:
> import win32file, win32api
> ImportError: DLL load failed: The specified module could not be found.
>
> Can anyone please help me with this issue?
I'm guessing that pywintypes27.dll and pythoncom27.dll aren't anywhere
on the PATH on PC#2 - try copying them next to python.exe.
HTH,
Mark
>
> OS: win xp
> version: pywin32-217
>
> Thanks,
> Jane
>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120713/4645eca2/attachment.html>
More information about the python-win32
mailing list