Class not registered???
maximilianscherr
MaximilianScherr at T-Online.de
Sat Jan 19 05:16:40 EST 2002
More information about the Python-list mailing list
Sat Jan 19 05:16:40 EST 2002
- Previous message (by thread): WEB Graphs Created by Python?
- Next message (by thread): Class not registered???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
thanks, how can i make a check if wsh2.0 or newer is installed? so that i can show a nice error messagebox:) --- In python-list at y..., Alex Martelli <aleax at a...> wrote: > maximilianscherr wrote: > > > i'm doing this and getting this error > > > > import win32com.client > >>>> shell = win32com.client.Dispatch("WScript.Shell") > ... > > IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, > > pythoncom.IID_IDispatch) > > com_error: (-2147221164, 'Klasse nicht registriert', None, None) > > ____________________________^ > > ____________________________| "Class not registered" > > > > also happens with activepython 2.2.0 alpha > > So, is WSH (the Windows Scripting Host, containing WScript etc) > in fact registered on the machine on which you're trying that? > > You can check by editing the Windows registry e.g. with regedit or > regedt32. HKEY_CLASSES_ROOT, does it have an entry whose > key is WScript.Shell? If so does it point to a GUID which is in turn > undes CLSID? These are all Windows and COM problems, of > course, not Python ones. > > If WSH is not registered, uninstall it, find and download the latest > release from the Microsoft site, install it again: it should register. > > > Alex > > -- > http://mail.python.org/mailman/listinfo/python-list
- Previous message (by thread): WEB Graphs Created by Python?
- Next message (by thread): Class not registered???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list