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
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
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
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
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
Teja wrote:
> s=pythoncom.CoMarshalInterThreadInterfaceInStream(pythoncom.IID_IDispatch,ie)
>
>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
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
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:
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
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
Hi!
.func( is not defined...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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:
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.
>
>
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
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
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
16 matches
Mail list logo