>>>>> "BK" == Bob Kline <[EMAIL PROTECTED]> writes: .... BK> Here's what a colleague gets running the same commands from his account:
BK> CDRDEV:D:\bkline>python BK> ActivePython 2.2.1 Build 222 (ActiveState Corp.) based on BK> Python 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] on win32 BK> Type "help", "copyright", "credits" or "license" for more information. >>>> import win32com.client >>>> win32com.client.Dispatch("ADODB.Connection") BK> Traceback (most recent call last): BK> File "<stdin>", line 1, in ? BK> File "D:\Python\Lib\site-packages\win32com\client\__init__.py", line 92, in Dispatch BK> dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) BK> File "D:\Python\Lib\site-packages\win32com\client\dynamic.py", line 81, in _GetGoodDispatchAndUserName BK> return (_GetGoodDispatch(IDispatch, clsctx), userName) BK> File "D:\Python\Lib\site-packages\win32com\client\dynamic.py", line 72, in _GetGoodDispatch BK> IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) BK> pywintypes.com_error: (-2147024770, 'The specified module could not be found.', None, None) >>>> BK> This is on a Win2K server. Our executable search paths are identical. BK> We are both members of the Administrators group on the machine. The BK> Python search path (sys.path) is identical. BK> What can be happening? Compare your windows registries; mine didn't get updated properly on install, and I had to do it by hand. I'm on Windows 98; as I recall, the error messages weren't identical to yours, but the gist was that standard system modules couldn't be found. I had previously installed Python2.1, and didn't uninstall it. To fix the problem, I simply exported the Python2.1 registry branch -- on 98 and on my installation, that's [HKEY_LOCAL_MACHINE\Software\Python\PythonCore\2.1] and modified it for 2.2 paths and names, with the assumption that the paths were the same from 2.1 to 2.2, and imported it again -- you can probably just export that branch from the working machine, check that the paths make sense on the non-working machine, and import there. I meant to write this up sooner, but got distracted. -- Patricia J. Hawkins Hawkins Internet Applications, LLC _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython