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

Jose Javier Marin jjmarin at unizar.es
Mon Oct 16 01:32:06 CEST 2006


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: jjmarin at unizar.es

Web site:  <http://www.unizar.es/> http://www.unizar.es/

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20061016/fb086903/attachment.htm 


More information about the Python-win32 mailing list