I am afraid that this is a COM error, and as such isnt really Python
related. For some reason, the moniker you passed is being rejected.
Unfortunately, I have no idea why. However, you almost certainly would
have the same problem from VB etc - the question is really relating to
Windows monikers, not to Python.
Mark.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Carlson, Christopher W.
> Sent: Saturday, 30 September 2000 6:24 AM
> To: '[EMAIL PROTECTED]'
> Subject: GetObject problems?
>
>
> Hello, everybody.
>
> I am running ActivePython 2.0b1, and can't seem to get
> GetObject() to work
> as advertised. Here's a sample:
>
> >>> import win32com
> >>> test = win32com.client.GetObject("WinNT://PIPENTWA")
> Traceback (innermost last):
> File "<interactive input>", line 1, in ?
> File "E:\Python20\win32com\client\__init__.py", line 80, in GetObject
> return Moniker(Pathname, clsctx)
> File "E:\Python20\win32com\client\__init__.py", line 95, in Moniker
> moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
> com_error: (-2147221020, 'Invalid syntax', None, None)
>
> Any ideas what might be causing this? I'll gladly admit that I
> am almost an
> absolute Python newbie, and have probably overlooked something obvious.
>
> Thanks for any advice you can offer.
>
> --- Chris
>
> ---
> Christopher W. Carlson / IS Administrator
> CertainTeed Corporation / Waco, Texas
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activepython
>
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython