We have run into some very strange behavior in ActiveState Python 2.2.1,
build 222. We have a fresh installation of this build on a machine from
which every prior release of Python has been stripped. Here's what I
get when I run the following code interactively from my account:
CDRDEV:D:\bkline>python
ActivePython 2.2.1 Build 222 (ActiveState Corp.) based on
Python 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
>>> win32com.client.Dispatch("ADODB.Connection")
<win32com.gen_py.Microsoft ActiveX Data Objects 2.6 Library._Connection>
>>>
Here's what a colleague gets running the same commands from his account:
CDRDEV:D:\bkline>python
ActivePython 2.2.1 Build 222 (ActiveState Corp.) based on
Python 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
>>> win32com.client.Dispatch("ADODB.Connection")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "D:\Python\Lib\site-packages\win32com\client\__init__.py", line 92, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "D:\Python\Lib\site-packages\win32com\client\dynamic.py", line 81, in
_GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "D:\Python\Lib\site-packages\win32com\client\dynamic.py", line 72, in
_GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147024770, 'The specified module could not be found.', None,
None)
>>>
This is on a Win2K server. Our executable search paths are identical.
We are both members of the Administrators group on the machine. The
Python search path (sys.path) is identical.
What can be happening?
--
Bob Kline
mailto:[EMAIL PROTECTED]
http://www.rksystems.com
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython