[python-win32] We cannot import win32api into the Poser6 Python.

Howard Lightstone howard at eegsoftware.com
Thu Oct 19 21:02:30 CEST 2006


Jose Javier Marin wrote:

>We have installed: Python-2.2.3.exe and pywin32-210.win32-py2.2.exe.
>It run OK in windows.
>We have copied the win32 extension in directory:
>??\Poser 6\Runtime\Python\lib\site-packages
>We have also copied pythoncom22.dll and perfmondata.dll of python2.2.3
>standard to directories:   
>??\Poser 6\ (in this directory is python22.dll of poser6) ??\Poser
>6\Runtime\Python\lib\site-packages
>??\Poser 6\Runtime\Python\lib\site-packages\win32
>??\windows\system32
>
>Unfortunately we think the problem is not of path. 
>
>We have tried to copy python22.dll (of python2.2.2 standard) in directory
>??\poser6 and so not use Poser6 python22.dll, but then poser 6 is not able
>to start python (poser shows an error: Unable to initialize Python
>properly).
>
>We think that the problem is in the library python22.dll of Poser6
>realease3. 
>
>
>
>Could you give us some clue to resolve this question?
>
>  
>
I just had to recreate this problem.

The problem IS with Windows and paths.  The problem is windoze loading 
process.  At the time you are trying to load pythoncom, it cannot find 
the DLL (or finds the wrong DLL).

The fix (such as it is):  put a copy of your pythoncom22.dll and 
pywintypes22.dll in the "current directory" where your application is 
trying to run from.  That will be the first-chance for windows to find 
the correct DLL.


Tested on XP-PRO, HP system, installed python-2.2.3, pywin32-203


-- 
Howard Lightstone
www.eegsoftware.com
www.eeger.com



More information about the Python-win32 mailing list