[python-win32] ImportError: DLL load failed

Mark Hammond skippy.hammond at gmail.com
Fri Jul 13 03:39:08 CEST 2012


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
>



More information about the python-win32 mailing list