> > Oct 15th 2006. > > We are a Research Group in Ergonomics and we have developed an > application about ergonomics with Poser4 and python and now we are > trying to work with Poser6. > > In POSER 4 we installed py152_python152.exe and win32all-143.exe So > we can import the module win32api and write directly in a Excel > sheet. > This is very import for us. > > But, the instruction: import win32api, into Poser6 Python we get an > error: > ImportError: DLL load failed: (it is not possible to find the process > specificated) > > We have installed: Python-2.2.3.exe and pywin32-210.win32-py2.2.exe. > > We think that the problem is in the library python22.dll of Poser6 > realease3. This is different of python22.dll of Python2.2.3 standard. > > We only need to execute the Dispatch module. For example: > > import win32api > from win32com.client import Dispatch > xlApp = Dispatch ("Excel.Application") > xlSheet = xlApp.Workbooks(motion_xls).Sheets("STD") > ... > xlSheet.Range(xlSheet.Cells(6,30),xlSheet.Cells(500,30)).Value = None > xlSheet.Range(xlSheet.Cells(6,30),xlSheet.Cells(len_tupla+5,30)).Value > = tupla > ... > > Does anybody help us in this question? > Truly it is very important for us. > > Many thanks in advance. > > Javier Marin > Universidad de Zaragoza. > E-mail: [EMAIL PROTECTED] > Web site: http://www.unizar.es/ > >
I think the problem is in Windows load processing (of paths). Windoze loads first from the specified file directory / current directory, the system32 folder, the system folder, and then from places in the PATH environment variable. I had the same problem with a private copy of Python 2.2 on systems with a system installed python2.2 - it always picked up a different pywintypes22 (from the system32 folder) on HP/Compaq machines that have python22 installed in a hidden (system) folder. The solution was to copy my local copy of pywintypes22.dll into the ??\lib\Site-packages\win32 folder (where win32api.pyd resides) of my private python installation. Now the DLL loader finds a matching pywintypes22 in the same folder it is loading the .PYD from. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32