COM ERROR

2010-11-12 Thread Girish
Hello All, I have an issue while accessing COM API of an application. I got following error when I tried to run following command: win32com.client.Dispatch() File "C:\Python25\Lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatch

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
This is the trae back ,can you help me please. Traceback (most recent call last): File "C:\Documents and Settings\dzxbrn\Desktop\Stop Test\13 Oct\MainThread.py", line 13, in threadFunction obj.MyNavigate(dest) # this is gving an error. File "C:\Documents and Settings\dzxbrn\De

Re: COM Error -- Urgent help

2006-10-17 Thread Neil Hodgson
Teja: > ie=win32com.client.Dispatch('internetexplorer.application') > ie.Visible=1 > > class GenericFunctions: > def __init__(self): > print "In Constructor of Generic Functions" > def MyNavigate(self,dest): > ie.Navigate(dest) You are using an interface created on th

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Diez B. Roggisch wrote: > Teja wrote: > > > > > Dennis Lee Bieber wrote: > >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > >> the following in comp.lang.python: > >> > >> >thread.start_new_thread(self.nav, (s,'www.google.com') > >> > > >> > I am getting an attribut

Re: COM Error -- Urgent help

2006-10-17 Thread Diez B. Roggisch
Teja wrote: > > Dennis Lee Bieber wrote: >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed >> the following in comp.lang.python: >> >> >thread.start_new_thread(self.nav, (s,'www.google.com') >> > >> > I am getting an attribute error >> >> That can not be the REAL code

Re: COM Error -- Urgent help

2006-10-17 Thread Fredrik Lundh
Teja wrote: > s=pythoncom.CoMarshalInterThreadInterfaceInStream(pythoncom.IID_IDispatch,i­­e) > >thread.start_new_thread(self.nav, (s,'www.google.com') > > I am getting an attribute error the traceback tells you what attribute Python was looking for, and may also provide additional clues

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Dennis Lee Bieber wrote: > On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > > >thread.start_new_thread(self.nav, (s,'www.google.com') > > > > I am getting an attribute error > > That can not be the REAL code... I'd expect a sy

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Fredrik Lundh wrote: > Teja wrote: > > > I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help > > me out... > > nobody here can read your mind. please post the code you're actually > using, *and* the error you're getting. > > Thnks for your immediate reply. Here is the code:

Re: COM Error -- Urgent help

2006-10-17 Thread Fredrik Lundh
Teja wrote: > I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help > me out... nobody here can read your mind. please post the code you're actually using, *and* the error you're getting. -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Méta-MCI wrote: > Hi! > > > .func( is not defined... > > > @-salutations > -- > Michel Claveau I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help me out... Thnks, Teja.P -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Error -- Urgent help

2006-10-16 Thread M�ta-MCI
Hi! .func( is not defined... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

COM Error -- Urgent help

2006-10-16 Thread Teja
HI all, I have a problem in accesing COM objects in threads. To be precise, lets assume that I have a class GenericFunctions which is defined as follows: import win32com.client, pythoncom, thread ie=win32com.client.Dispatch('internetexplorer.application') ie.Visible=1 class GenericFunctions:

Re: COM error

2006-10-16 Thread Teja
Neil Cerutti wrote: > On 2006-10-14, Teja <[EMAIL PROTECTED]> wrote: > > What is "ValueError: argument is not a COM object" ? I get this > > error when I try to pass a COM object to a thread. > > > > Any pointers > > Try passing it to Larry Bird, instead. He's bound to score some > points. > >

Re: COM error

2006-10-13 Thread Neil Cerutti
On 2006-10-14, Teja <[EMAIL PROTECTED]> wrote: > What is "ValueError: argument is not a COM object" ? I get this > error when I try to pass a COM object to a thread. > > Any pointers Try passing it to Larry Bird, instead. He's bound to score some points. Seriously, the function you called exp

COM error

2006-10-13 Thread Teja
What is "ValueError: argument is not a COM object" ? I get this error when I try to pass a COM object to a thread. Any pointers Thanks Teja -- http://mail.python.org/mailman/listinfo/python-list

COM error Access is denied

2005-09-22 Thread Fabian Skivee
Hello, I try to make web testing using Pamie and it use win32com to call Internet Explorer. A access denied COM_error occurs and I don't know how to solve it. I'm administrator of my workstation and I install myself Pyton and win32com Any idea ?   File "D:\pyatf\Browser.py", line 32, in do