untrusted dynamic module: win32api

Mark Hammond mhammond at skippinet.com.au
Sun Sep 8 02:11:26 CEST 2002


Enoch wrote:
> Hi,
> 
> I'm a Softimage|XSI user, a 3D graphic software that support ActiveX
> Scripting on win32 platforms.
> 
> This software integrate a 'NetView', an integrated internet explorer.
> 
> To be able to communicate between the NetView and XSI I have to create the
> XSI.Application object.
> 
> Works fine with VBScript and JScript, however I'm running into a problem
> trying to make it work with Python.
> 
> Basicaly I have to include in my html page the following code:
> 
> <SCRIPT Language="Python">
> import win32com.client
> w = win32com.client.Dispatch("XSI.Application")
> </SCRIPT>
> 
> But when I load this page into the NetView ( or even in an external
> brother ) I have this error message:
> 
> 'ImportError: untrusted dynamic module: win32api'
> 
> Is there any way to 'force' the import ?
> 
> Sorry if this has been discussed earlier, I'm relatively new to Python.

It appears that SoftImage is configuring ActiveScripting for "untrusted" 
scripts - ie, SoftImage is requesting the scripting engine switch into 
untrusted mode.  Thus, you really need to ask SoftImage is the 
application can be configured to not request restricted execution mode 
of the language.

Mark.




More information about the Python-list mailing list