ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
Python activeX scripting
by Julio Dilisa other posts by this author
Mar 4 2009 5:13AM messages near this date
view in the new Beta List Site
wxpython |
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
THALES ALENIA SPACE ETCA s.a.
Business Analyst CAD/CAM

+32 71 44 24 48

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved