[python-win32] Python activex Scripting engine error

julio.dilisa at thalesaleniaspace.com julio.dilisa at thalesaleniaspace.com
Fri Mar 6 10:09:36 CET 2009


Hello,

If I run the code (with wsscript small_pys.pys) given here under, I got 
this error

==========================================================
" Windows Script Host" Error 
___________________________

Script:...
Line 9
char 0
Error: Traceback...
File "<Script Block>" line 9, in <module>
 import Tkinter
File .....
::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 import _tkinter
ImportError: DLL load failed. The specified module could not be found
Code:    8002200009
Source: Python ActiveX Scripting Engine

=============================================================

If I run the code the python way : python small_pys.pys, I get no trouble.

What can I do to make my code work with wscript ?

------------------------
small_pys.pys
------------------------
# ________________CODE_________________

import os
import win32api
import win32com

# Uncomment following line to provoque an error
import Tkinter

def mymsg(msg = 'hello world'):

    win32api.MessageBox(0,msg)

b = mymsg(os.getcwd())

#________________________________________

Thanks for your help.


Julio DILISA

Python Activestate 2.6.1
Windows XP Professional SP3


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090306/91433cea/attachment.htm>


More information about the python-win32 mailing list