  | | | pythonwin ide and com tlb files | pythonwin ide and com tlb files 2005-04-04 - By Jerry Gamache
Back XSI has a script host and inside this host it is possible to access the global application object using the call. When XSI is not running the XSI.Application object has no idea how to start XSI and fails with the error you just saw.
Not a bug. The remote execution feature is complex to implement and is not there.
You might want to put that code in a try/except bracket. That will allow you to import the module in PyWin32 and continue exploring.
Jerry.
PS: Have you ever tried running PyAlaMode from within XSI. Good for quick exploration if you can stand the instability and limitations.
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf Of Bernard Lebel Posted At: Sunday, April 03, 2005 12:32 PM Posted To: xsi Conversation: pythonwin ide and com tlb files Subject: Re: pythonwin ide and com tlb files
If I try to import a module in the PythonWin ide that has these lines:
import win32com Application = win32com.client.Dispatch( 'XSI.Application' )
I get this nice error:
Traceback (most recent call last): (...) Application = win32com.client.Dispatch( 'XSI.Application' ) AttributeError: 'module' object has no attribute 'client'
However when this is run in XSI there is no problem whatsoever. Any idea?
Thanks Bernard
Jerry Gamache wrote: > No need to copy anything, just start PythonWin from the XSI application path. .. > > C:\> cd \Softimage\XSI_4.2\Application\bin > C:\Softimage\XSI_4.2\Application\bin> C:\Python24\Lib\site-packages\pythonwin \Pythonwin.exe
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |